Skip to content

fix(desktop): prevent duplicate first prompts on thread remount - #689

Merged
huichen merged 2 commits into
mainfrom
fix/duplicate-user-message
Sep 17, 2026
Merged

huichen merged 2 commits into
mainfrom
fix/duplicate-user-message

Conversation

@huichen

@huichen huichen commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Consume a staged first prompt at durable Agent acceptance instead of waiting for the full reply.
  • Preserve in-flight prompt ownership across keyed thread remounts, including attachment preparation, while allowing rejected prompts to be retried on a later visit.
  • Keep canonical in-flight replies out of legacy positional run matching so an unrelated failed run cannot mark the live answer as interrupted.

Validation

  • Desktop TypeScript check passed.
  • Desktop ESLint passed.
  • Desktop Vitest: 134 files, 1133 tests passed.
  • Regression coverage for acceptance timing, pre-acceptance remounts, validation rejection/retry, stray failures, and mixed canonical/legacy history.

No running services were restarted and no user conversation records were modified.

@huichen
huichen enabled auto-merge (squash) September 17, 2026 04:21
@huichen
huichen merged commit 11b68b0 into main Sep 17, 2026
12 checks passed
@huichen
huichen deleted the fix/duplicate-user-message branch September 17, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant