Repository navigation
#796 Retire optimistic sends by client message id - #802
Merged
Merged
Conversation
Every send that can carry an id now sends a client msg_ id (v2 prompt `id`, v1 prompt_async and command `messageID`) and uses it as the optimistic row id, so the echo retires the row whatever the server does to its text or filenames. v2 commands take no id: their row retires on the first new user message after the send. Text-and-filename matching is gone on both platforms. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ivanfenenko
marked this pull request as ready for review
October 23, 2026 13:34
Resolve conflicts with #797 inline skill mentions by keeping both the skill fields and the client message id on prompt and command options. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
msg_id in the server's own format: v2 promptid, v1prompt_asyncandcommandmessageID. That id is also the optimistic row id, so the echo retires the row whatever the server does to its text or filenames (skill bodies, expanded templates, renamed files).POST …/commandtakes no id and its catalog has no template, so its row retires on the first new user message after the send: a user row whose id was not loaded when the send began.Checks
testDebugUnitTestpasses; no ktlint findings on changed lines.OpenCode MobileTestspasses (2,609 tests).dev), both apps: skill prompt, expanded slash command, attachment renamed in transit (throwaway proxy), and send while busy / v2 steer each show one row; request bodies and stored message ids checked for each.Issue
Risks / Follow-ups
[/invoice-style]token (Android shows it); v1 slash commands show the expanded template instead of[/name] argson both apps.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmithwith what you need.