Skip to content

feat(tui): move Tasks tab to sidebar, make bottom panel Terminal-only - #242

Merged
github-actions[bot] merged 1 commit into
mainfrom
forge/tasks-to-sidebar-terminal-independent
Aug 4, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
forge/tasks-to-sidebar-terminal-independent

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Final PR of the 3-PR round-2 layout sequence (feat(tui): add cosmetic vim mode tag to source viewer #240 mode-tag shell, feat(tui): persistent conversation sidebar, remove Conversation workspace view #241 sidebar + Conversation removal, this PR)
  • Relocates the bottom panel's Tasks tab into a "BACKGROUND" strip docked above the composer in the persistent sidebar — straight relocation of the existing rendering/data (session.background()), no new capability. Moved the rendering code verbatim into a new widgets/background_strip.rs, not reinvented
  • Bottom panel becomes Terminal-only: BottomPanelTab and its tab-cycling chrome (tab strip, CycleBottomPanelTab, Alt+1..3 tab-index keybinding) are deleted entirely, not kept for hypothetical future tabs
  • Adds a real FocusBlock::Sidebar — background-task selection/cancel/approve/deny keys (Up/Down/x/a/d) now require the sidebar to have focus, since the Tasks tab that used to gate them no longer exists. This is a bigger lift than a pure relocation; the alternative (keys always active whenever tasks exist) was considered and rejected due to collision risk with other keybindings
  • Tab-cycle order becomes [Files, Workspace, Sidebar, Composer, BottomPanel] — Sidebar sits right before Composer since they're the same physical column post-sidebar-layout (composer docks below the background strip)
  • Clicking the sidebar now focuses it (mouse.rs's HitTarget::Sidebar handler, a no-op placeholder since PR feat(tui): persistent conversation sidebar, remove Conversation workspace view #241, now wired up)
  • layout.rs: sidebar's vertical sub-split gains a background: Rect row between queue and input, height computed live from the current task count

Test plan

  • cargo test -p forge-tui — 721 passed, including relocated/rewritten coverage for the background strip, sidebar focus-cycling, and Tasks-tab-turned-sidebar interaction flows
  • cargo test --workspace — clean except the pre-existing, unrelated forge-config permissions failures
  • cargo clippy -p forge-tui --all-targets — clean
  • cargo fmt --all -- --check — clean

Relocates the bottom panel's Tasks tab into a "BACKGROUND" strip docked
above the composer in the persistent sidebar (straight relocation, same
rendering, no new capability). The bottom panel becomes Terminal-only —
BottomPanelTab and its tab-cycling chrome are deleted entirely, not kept
for hypothetical future tabs.

Background-task selection/cancel/approve/deny keys now require a new
FocusBlock::Sidebar rather than the deleted Tasks tab having bottom-panel
focus. Tab-cycle order becomes [Files, Workspace, Sidebar, Composer,
BottomPanel] — Sidebar sits right before Composer since they're the same
physical column (composer docks below the background strip).

This closes the 3-PR round-2 layout sequence (mode-tag shell, sidebar +
Conversation removal, this PR).
@github-actions
github-actions Bot enabled auto-merge (squash) August 4, 2026 14:29
@github-actions
github-actions Bot merged commit 7a8b36a into main Aug 4, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
…#242)

Relocates the bottom panel's Tasks tab into a "BACKGROUND" strip docked
above the composer in the persistent sidebar (straight relocation, same
rendering, no new capability). The bottom panel becomes Terminal-only —
BottomPanelTab and its tab-cycling chrome are deleted entirely, not kept
for hypothetical future tabs.

Background-task selection/cancel/approve/deny keys now require a new
FocusBlock::Sidebar rather than the deleted Tasks tab having bottom-panel
focus. Tab-cycle order becomes [Files, Workspace, Sidebar, Composer,
BottomPanel] — Sidebar sits right before Composer since they're the same
physical column (composer docks below the background strip).

This closes the 3-PR round-2 layout sequence (mode-tag shell, sidebar +
Conversation removal, this PR).
mohitranka added a commit that referenced this pull request Sep 11, 2026
…#242)

Relocates the bottom panel's Tasks tab into a "BACKGROUND" strip docked
above the composer in the persistent sidebar (straight relocation, same
rendering, no new capability). The bottom panel becomes Terminal-only —
BottomPanelTab and its tab-cycling chrome are deleted entirely, not kept
for hypothetical future tabs.

Background-task selection/cancel/approve/deny keys now require a new
FocusBlock::Sidebar rather than the deleted Tasks tab having bottom-panel
focus. Tab-cycle order becomes [Files, Workspace, Sidebar, Composer,
BottomPanel] — Sidebar sits right before Composer since they're the same
physical column (composer docks below the background strip).

This closes the 3-PR round-2 layout sequence (mode-tag shell, sidebar +
Conversation removal, this PR).
mohitranka added a commit that referenced this pull request Sep 11, 2026
…#242)

Relocates the bottom panel's Tasks tab into a "BACKGROUND" strip docked
above the composer in the persistent sidebar (straight relocation, same
rendering, no new capability). The bottom panel becomes Terminal-only —
BottomPanelTab and its tab-cycling chrome are deleted entirely, not kept
for hypothetical future tabs.

Background-task selection/cancel/approve/deny keys now require a new
FocusBlock::Sidebar rather than the deleted Tasks tab having bottom-panel
focus. Tab-cycle order becomes [Files, Workspace, Sidebar, Composer,
BottomPanel] — Sidebar sits right before Composer since they're the same
physical column (composer docks below the background strip).

This closes the 3-PR round-2 layout sequence (mode-tag shell, sidebar +
Conversation removal, this PR).
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