Repository navigation
#797 Keep skill spans on iOS user messages after live updates - #826
Merged
Merged
Conversation
The message store rebuilt a v2 prompt three ways without its skills: merging live parts, filling metadata from the REST copy, and stamping the running agent and model. Session Chat then showed raw /name text instead of [/name] spans, live and after reload. Carry promptSkills through all three. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ivanfenenko
added a commit
that referenced
this pull request
Oct 25, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 25, 2026
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
/tdd-checktext in Session Chat, both live and after a reload, instead of highlighted[/tdd-check]spans. Android was already correct.session.inbox.enqueued, andEventDomainAdapterprojected it without its skills. It now projects the skill ids and mentions into the user info (not the model-facing skill body).MessageInfoDTOdecodes them,MessageDomainAdapter.message(info:)maps them, and the store keeps them when the latersession.inbox.deliveredinfo omits them.promptSkillsin three places, so the REST copy's skills were dropped:InMemoryMessageStore: merging live parts onto the REST copy.Message.withMetadata(from:): filling a partial live info from the REST copy (it now falls back to the base copy's skills).SessionRunningContext.stamp: filling in the running agent and model.Checks
PromptSkillCarryOverTests(7 tests) failed before each fix and pass after it. They cover the part merge,withMetadata,stamp, the enqueue projection, live enqueue followed by delivery, and the end-to-end[/name]collapse.dev, iPhone 16 Pro Max, two inline skills: the sent bubble and the reloaded history both show highlighted[/tdd-check]and[/security-check]. (The draft reads "Can" instead of "fix" because of simulator autocorrect.)Issue
Risks / Follow-ups
SessionCacheCodec) still doesn't savepromptSkills. Android's cache doesn't either. A cold open from cache may show raw text until the REST refresh replaces it (not checked).🤖 Generated with Claude Code