Skip to content

#797 Project v2 prompt skills from the inbox event on iOS - #829

Merged
ivanfenenko merged 1 commit into
mainfrom
fix/797-ios-live-skill-spans
Oct 25, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
fix/797-ios-live-skill-spans

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Follow-up to #797 Keep skill spans on iOS user messages after live updates #826. The squash-merge of #797 Keep skill spans on iOS user messages after live updates #826 included only its first commit (the reload fix), so this second commit (the live fix) never reached main.
  • On iOS, a live v2 prompt with inline skills showed raw /tdd-check text in the sent bubble until a reload. The prompt reaches the store through session.inbox.enqueued, and EventDomainAdapter projected it without its skills.
  • EventDomainAdapter now projects the skill ids and mentions into the user info (not the model-facing skill body). MessageInfoDTO decodes them, MessageDomainAdapter.message(info:) maps them to promptSkills, and the store keeps them when the later session.inbox.delivered info omits them.
  • Android needs no change: it already renders live and reloaded skill spans.

Checks

  • 2 new tests in PromptSkillCarryOverTests (live enqueue followed by delivery, and the enqueue projection) failed before the fix and pass after it.
  • Full iOS unit suite on this exact tree (same tree as the tested d72ca7bc): 2691 tests in 260 suites pass.
  • Scenario harness, v2 dev, iPhone 16 Pro Max, two inline skills: the sent bubble shows highlighted [/tdd-check] and [/security-check] right after sending, and still does after a relaunch.
Live, after sendReloaded

Issue

Risks / Follow-ups

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need.

A live v2 prompt reached the store only through session.inbox.enqueued, which
the event adapter projected without its skills, so the sent bubble showed raw
/name text until a reload. Project the skill ids and mentions (not the skill
body) into the user info, decode them, and keep them across the delivery info.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: no finding that 2+ of 3 passes agreed on.

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.155

@ivanfenenko
ivanfenenko merged commit 80d3fd8 into main Oct 25, 2026
2 checks passed
@ivanfenenko
ivanfenenko deleted the fix/797-ios-live-skill-spans branch October 25, 2026 19:24
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