Repository navigation
#797 Inline skill mentions, several per prompt - #801
Merged
Merged
Conversation
Skills are `/name` spans in the Session Chat composer on both platforms:
the `/` trigger is cursor-aware, picks insert at the caret, spans
reconcile and delete like `@` mentions, and any number can sit anywhere
in the draft. The prompt text goes out verbatim with agent and file
mentions intact; each skill is sent as `{ id, mention }` on the v2 prompt
route, or as `{ id }` alongside a server command. v2 user messages read
`skills` back so history and the optimistic row highlight every
`[/name]` token. v1 routing is unchanged.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
ivanfenenko
marked this pull request as ready for review
October 23, 2026 11:31
Unify the skill read-back on main's PromptSkill and V2UserSkillDTO (#795): PromptSkill carries the mention offsets, and the timeline derives the `/name` spans from it for `[/name]` collapse. Co-Authored-By: Claude Fable 5.1 <[email protected]>
8 tasks
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
/in the Session Chat composer is now a cursor-aware trigger like@: it opens at the start of the draft or after whitespace, never inside a word or a file path./namespan at the caret and keeps the rest of the draft; picking a command inserts the leading/nametoken the same way. Nothing replaces the whole draft any more (slash overlay and the Commands sheet Skills tile both go through this path).@mention colour, persist in composer drafts, and any number can sit anywhere. A skill already in the draft is not offered again; commands are offered only when the/is leading.{ id, mention: { start, end, text } }onPOST /api/session/{id}/prompt(deduped by id); a server-command draft still goes to the command route and carriesskills: [{ id }]. A hand-typed leading/skill argsis still admitted as a span.skillsback into the domainMessage; history and the optimistic row collapse every span to[/name]and the outgoing bubble highlights every such token, not only a leading one.GET /commandstill inlines skills, a leading v1 skill still goes toPOST command, the v1 prompt route carries no skills.Checks
xcodebuild teston iPhone 17 simulator for ComposerSubmitRouting, ComposerMentionRouting, CommandInvocationCollapser, MessageDomainAdapter, PromptJSONBodyWriter, SessionChatViewModel, ComposerDraftStore, SessionChatTimelineBlocks, CommandDomainAdapter suites: 476 tests pass../gradlew :app:testDebugUnitTestfor ComposerMentionRouting, domain.command.*, MessageDomainAdapter, PromptJsonBodyWriter, SessionChatViewModel: 392 tests pass (1 pre-existing skip). ktlint violations in lines added here fixed; pre-existing ones in touched files left as they were.Issue
Risks / Follow-ups
@trigger (official web behaviour) is out of scope by the ticket.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmithwith what you need.