Repository navigation
#901 Name the asking subagent and page requests in permission and question panels - #910
Conversation
ivanfenenko
left a comment
There was a problem hiding this comment.
Review of #901 (attribution, paging, question collapse).
Checked and found OK:
- v2
agentmatches the server:Session.agentisAgent.ID.pipe(optional)in opencode's v2 session schema. Both DTOs decode it as optional (iOS usestry?, Kotlin has a nullable default), and it is mapped into the domainSessionin the adapter, so feature code never touches the wire type. - The v1 suffix parse matches the task tool's title,
params.description + " (@${agent.name} subagent)". The server writes that text in English and never localises it. A user rename drops the suffix, and the row then falls back to "subagent …" with no name. That is acceptable. - Nested subagents resolve to the asking (grandchild) session. Paging by id works, the page clamps at the ends, and a gone selection falls back to the first request. Answers are guarded by the visible request id, and per-request answers are restored on both platforms.
- Harness changes are test-only. I found no private data in the code, fixtures or the evidence comment.
- Tests: Android
InboxRequestAttributionTest,SessionChatViewModelTest,QuestionRequestSupportTest,SessionDomainAdapterTestgave 274 tests, 0 failures. iOSInboxRequestAttributionTests,SessionChatViewModelTests,QuestionRequestSupportTests: TEST SUCCEEDED.
Findings are inline: 2 should-fix, 1 nit. One more nit that has no line to anchor to: the branch carries e0686179 Attach PR evidence with gh instead of evidence branches, a second copy of #896 (ddf36da0), which is already on main. Because of it, AGENTS.md, two skills and the scripts/publish-evidence.sh deletion show up under Files changed. The net diff against main for those files is empty, so a rebase onto main would drop it and leave a clean diff.
…stion panels - A permission or question from a descendant subagent session shows a light amber row with the agent letter, "general · subagent wants to run: npm test" or "explore · subagent asks", and Open to show that subagent's session. The name comes from the v2 session `agent` field, or the v1 task title suffix. - Arrows beside "1 of N", dots under the panel and a horizontal swipe page between waiting requests; each question request keeps its own answers. - The question panel collapses to an "Answer question" pill like the permission panel; neither pill can dismiss the request. - Harness: two P1 scenarios with parallel subagent permissions and questions, and the harness config lets general/explore subagents ask questions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ers pure - The Review permission / Answer question pill shows whenever a request is hidden, so a question collapsed in a subagent session can be reopened. - Kept question answers and their owner live in the inbox state; the draft sync is a pure function, so a re-run StateFlow update cannot mix answers. - TalkBack skips the attribution letter. Co-Authored-By: Claude Opus 5.5 <[email protected]>
53ee690 to
d8268fe
Compare
|
Rebased on main to drop the duplicate copy of #896 (e068617); Files changed now shows only this PR. Android JVM tests: 280 passed, 0 failures (attribution, Session Chat view model, question support, session adapter, and the new |















Fixes #901 (part of #899)
What
Both panels still replace the composer while a request waits.
agentfield (now mapped into the domainSession), and v1 falls back to the task tool's(@agent subagent)title suffix.OpenCodeActionPill, the current collapsed-pill component). Neither pill has a ✕.permission-in-parallel-subagents(the session's ownrm -rf distplusgeneralandexploresubagents asking at once) andquestion-in-parallel-subagents. Built-in subagents deny thequestiontool, so the harness config now allows it forgeneralandexplore.No protocol-specific UI. Attribution, paging and collapse live in the inbox region state and Screen Model on both platforms.
Checks
InboxRequestAttributionTests,SessionChatViewModelTests,QuestionRequestSupportTests: 242 tests passed.InboxRequestAttributionTest,SessionChatViewModelTest,QuestionRequestSupportTest,SessionDomainAdapterTest: 274 tests, 0 failures.agentfield, v1 title suffix, nested subagents, fallback) and paging (clamping, page by id, per-request answers, hide/show of both panels).check.mjson v2: both new scenarios andquestion-answer-in-appfinish.Risks / Follow-ups
arrowBack/arrowForwardicons, so the generated icon catalog stays untouched while Session Chat: floating pill component #900 is in flight. Session Chat: connect needs-input pill and prompt pills #906 moves both pills onto the new pill component.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.