feat: 问就是封包

This commit is contained in:
claude-code-best
2026-03-31 23:32:58 +08:00
parent d7a729ca68
commit dd9cd782a7
67 changed files with 423 additions and 172 deletions

View File

@@ -107,7 +107,7 @@ function enqueueShellNotification(taskId: string, description: string, status: '
// If the task was already marked as notified (e.g., by TaskStopTool), skip
// enqueueing to avoid sending redundant messages to the model.
let shouldEnqueue = false;
updateTaskState(taskId, setAppState, task => {
updateTaskState<LocalShellTaskState>(taskId, setAppState, task => {
if (task.notified) {
return task;
}
@@ -479,7 +479,7 @@ export function backgroundExistingForegroundTask(taskId: string, shellCommand: S
* carries the full output, so the <task_notification> would be redundant.
*/
export function markTaskNotified(taskId: string, setAppState: SetAppState): void {
updateTaskState(taskId, setAppState, t => t.notified ? t : {
updateTaskState<LocalShellTaskState>(taskId, setAppState, t => t.notified ? t : {
...t,
notified: true
});