feat: improve horizontal overflow cues and off-screen task attention#52
Open
ASRagab wants to merge 4 commits intojohannesjo:mainfrom
Open
feat: improve horizontal overflow cues and off-screen task attention#52ASRagab wants to merge 4 commits intojohannesjo:mainfrom
ASRagab wants to merge 4 commits intojohannesjo:mainfrom
Conversation
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
This PR improves the usability of Parallel Code when many task slices are open side-by-side.
The key change in framing was that horizontal scrolling already existed; the real product gaps were:
This PR addresses those gaps and also increases terminal scrollback for agent review/debugging.
What changed
1) Horizontal overflow affordance
src/components/TilingLayout.tsxsrc/styles.cssto use a narrow accent/caret-led cue rather than a heavy overlay2) Runtime-only viewport visibility for task slices
visibleoffscreen-leftoffscreen-rightTilingLayout3) Additive task attention model
src/store/taskStatus.tswithout replacing the existing dot status model:idleactiveneeds_inputerrorreadygetTaskDotStatus()intact for backward compatibility4) Better off-screen/background attention detection
[Y/n]prompts could otherwise loseneeds_inputstate5) UI surfacing for off-screen attention
SidebarandStatusDotso off-screen tasks can surface stronger attention cues6) Attention-aware desktop notifications
readyneeds_inputerror7) Longer terminal scrollback
10_000lines in both:src/components/TerminalView.tsxsrc/remote/AgentDetail.tsxsrc/lib/terminalConstants.tsWhy this approach
Notes on implementation details
Validation
npm run typechecknpm run lintnpx vitest run src/store/taskStatus.test.tsAll passed locally.
Files changed
src/components/Sidebar.tsxsrc/components/StatusDot.tsxsrc/components/TerminalView.tsxsrc/components/TilingLayout.tsxsrc/lib/terminalConstants.tssrc/remote/AgentDetail.tsxsrc/store/core.tssrc/store/desktopNotifications.tssrc/store/store.tssrc/store/taskStatus.test.tssrc/store/taskStatus.tssrc/store/types.tssrc/store/ui.tssrc/styles.cssCommit structure
feat: add horizontal overflow affordance cuesfeat: surface off-screen task attentionfeat: increase terminal scrollbackchore: simplify sidebar attention cleanup