Repository navigation
#906 Connect the needs-input and prompt pills - #924
Merged
Merged
Conversation
Tapping the background work pill while a subagent waits now opens the permission or question panel on that subagent's request, expanding it if collapsed, instead of the Subagents sheet. The panel pulses briefly after that tap and after "Review permission" / "Answer question" (a fade with Reduce Motion on iOS, skipped with animations off on Android). The Android floating pill now speaks only its description. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
There was a problem hiding this comment.
Automated review: no finding that 2+ of 3 passes agreed on.
8 finding(s) from a single pass, not posted
android/app/src/main/java/dev/opencode/mobile/ui/components/chrome/OpenCodeFloatingPill.kt:275high: clearAndSetSemantics after clickable strips click and role (muse-spark-1.3-contributor)android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/SessionChatViewModel.kt:1763medium: openWaitingSubagentRequest returns true when focus no-ops (muse-spark-1.3-contributor)ios/OpenCode Mobile/OpenCode Mobile/UI/SessionChat/SessionChatViewModel.swift:1411medium: openWaitingSubagentRequest returns true when focus no-ops (muse-spark-1.3-contributor)android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/view/SessionChatPanelPulse.kt:27low: Panel pulse caches animator-scale and never observes it (muse-spark-1.3-contributor)android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/SessionChatScreen.kt:968low: Needs-input pill still announces "Open subagents" but now opens the request panel (deepseek-v4.1-flash)ios/OpenCode Mobile/OpenCode Mobile/UI/SessionChat/SessionChatView.swift:585low: iOS needs-input pill still says "Open subagents" after changing its action (deepseek-v4.1-flash)android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/region/SessionChatInbox.kt:168low: Focus can silently skip paging while the click handler still reports success (deepseek-v4.1-flash)android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/timeline/SessionChatBackgroundWork.kt:208low: Question fallback opens another session's permission instead of the named subagent's request (deepseek-v4.1-flash)
opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.131 · 1 pass(es) stopped early
The pill now pages to the waiting request, so its spoken label says "Open request" instead of "Open subagents" while a subagent waits. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
Follow-up on the review's single-pass notes:
|
11 tasks done
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
Part of #899. Final wiring of the floating pill system.
SessionChatBackgroundWork.needsInputTarget. It picks the first waiting subagent (spawn order, the same as the top row of the Subagents panel), then that subagent's permission, else its question. A request from the subagent's own subagent counts. A question waits behind any permission, so in that case the shown permission opens. If the request is already gone, the tap falls back to the Subagents sheet.focus(target)(page, un-collapse, pulse). The Screen Model exposesopenWaitingSubagentRequest()and aninboxPanelPulsecounter that the view watches.OpenCodeFloatingPillusedsemantics(mergeDescendants = true), so TalkBack read the visible label again after a customaccessibilityLabel. It now usesclearAndSetSemantics, which keeps the click action, role and live region fromclickableon the same node.Shells are out of scope (#907). Old pill components are untouched; that cleanup is a separate PR.
Fixes #906
Checks
SessionChatBackgroundWorkTests,SessionChatViewModelTests,SessionChatPillSlotsTests,SessionChatPlaygroundTests: 285 of 286 pass. The failing test,sendPrompt_postSendReloadMatchingUser_dropsOptimistic, fails the same way on unchangedmain(b89dd17), so it was already broken../gradlew :app:testDebugUnitTestpasses.ktlintCheckreports nothing for the changed files. The new instrumentedOpenCodeFloatingPillSemanticsTestpasses on an emulator: the merged node has the custom description, a click action and noText.dev. Screenshots are in the comment below.Risks / Follow-ups
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.