Skip to content

fix(agent): prevent silent message loss#1122

Merged
ErlichLiu merged 1 commit into
mainfrom
ErlichLiu/fix-agent-message-loss
Jul 8, 2026
Merged

fix(agent): prevent silent message loss#1122
ErlichLiu merged 1 commit into
mainfrom
ErlichLiu/fix-agent-message-loss

Conversation

@ErlichLiu

Copy link
Copy Markdown
Collaborator

Fixes Agent send flows so user prompts are persisted before preflight/model checks, empty SDK completions become visible errors, and stale queue channels fall back to a fresh run instead of trapping the next message.

The root cause was that several failure paths could complete before a user message or assistant error was written, while completion notifications still treated those turns as successful.

This also suppresses success completion sounds for error or interrupted completions and bumps @proma/electron to 0.14.16.

Validated with cd apps/electron && bun run typecheck, bun test, and git diff --check.

@ErlichLiu ErlichLiu marked this pull request as ready for review July 8, 2026 02:24
@ErlichLiu ErlichLiu merged commit 2a9753d into main Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant