Skip to content

feat(tui): persistent conversation sidebar, remove Conversation workspace view - #241

Merged
github-actions[bot] merged 1 commit into
mainfrom
forge/sidebar-remove-conversation-view
Aug 4, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
forge/sidebar-remove-conversation-view

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Introduces a persistent right-hand sidebar that always shows the conversation transcript + composer, regardless of what the center pane displays — PR crates/forge-tui: Fix rustfmt violation in file_explorer #2 of a 3-PR round-2 layout sequence (design notes from the grilling session; PR .github/workflows: Migrate workflows to Blacksmith runners #1 was feat(tui): add cosmetic vim mode tag to source viewer #240)
  • WorkspaceView::Conversation is removed as a center-pane state. WorkspaceNavigation.current becomes Option<WorkspaceView> — None renders an empty-state placeholder ("No file open — select one from the explorer") instead
  • layout.rs: new sidebar: Option<Rect> region; feedback/queue/input move from a full-window-width row into a sub-split scoped to the sidebar's own width; bottom panel stays docked under files+chat only, never under the sidebar
  • Approval card stays docked to the (wider) center pane rather than the sidebar — an initial attempt to move it into the sidebar cramped safety-critical text (command args, redacted secrets, remember-invocation controls) into a ~32-col column and wrapped it illegibly
  • Fixed a latent bug surfaced by the narrower center pane: approval_card_dock_height() counted logical lines without accounting for word-wrap at the actual render width, so a narrow dock could truncate the card's action buttons. It now takes a width param and computes wrapped-row count properly
  • Dropped the Enter-key "activate activity summary" shortcut — it only worked while conversation was a focused workspace-nav state, which no longer exists, and there's no new focus concept to hang it off. Mouse click on the summary banner still works, via a new HitTarget::Sidebar hit region also used to route wheel-scroll to the conversation regardless of center-pane state

Test plan

  • cargo test -p forge-tui — 725 passed (up from 724 baseline), including updated coverage across workspace, pointer, focus, activity, edge, run, approval, editor, conversation_cache test modules
  • cargo test --workspace — clean except the pre-existing, unrelated forge-config permissions failures (documented machine-specific issue, not touched by this branch)
  • cargo clippy -p forge-tui --all-targets — clean
  • cargo fmt --all -- --check — clean

…orkspace view

Introduces a new sidebar layout region that always shows the conversation
transcript and composer, regardless of what the center pane displays.
WorkspaceView::Conversation is removed as a center-pane state — the center
pane now shows File/Diff/Run or an empty placeholder ("No file open") via
WorkspaceNavigation.current: Option<WorkspaceView>.

- layout.rs: new sidebar region, feedback/queue/input scoped to its width
  instead of full-window; bottom panel stays under files+chat only
- Approval card stays docked to the (wider) center pane rather than the
  sidebar — cramming safety-critical approval text into the sidebar's
  column wrapped it illegibly
- Fixed a latent bug in approval_card_dock_height(): it didn't account for
  word-wrap at the actual render width, so a narrow dock could truncate
  the card's action buttons
- Dropped the Enter-key "activate activity summary" shortcut (no trigger
  point left without a new focus concept); mouse click still works via a
  new Sidebar hit target used for scroll routing
@github-actions
github-actions Bot enabled auto-merge (squash) August 4, 2026 13:54
@github-actions
github-actions Bot merged commit abcdc69 into main Aug 4, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
…orkspace view (#241)

Introduces a new sidebar layout region that always shows the conversation
transcript and composer, regardless of what the center pane displays.
WorkspaceView::Conversation is removed as a center-pane state — the center
pane now shows File/Diff/Run or an empty placeholder ("No file open") via
WorkspaceNavigation.current: Option<WorkspaceView>.

- layout.rs: new sidebar region, feedback/queue/input scoped to its width
  instead of full-window; bottom panel stays under files+chat only
- Approval card stays docked to the (wider) center pane rather than the
  sidebar — cramming safety-critical approval text into the sidebar's
  column wrapped it illegibly
- Fixed a latent bug in approval_card_dock_height(): it didn't account for
  word-wrap at the actual render width, so a narrow dock could truncate
  the card's action buttons
- Dropped the Enter-key "activate activity summary" shortcut (no trigger
  point left without a new focus concept); mouse click still works via a
  new Sidebar hit target used for scroll routing
mohitranka added a commit that referenced this pull request Sep 11, 2026
…orkspace view (#241)

Introduces a new sidebar layout region that always shows the conversation
transcript and composer, regardless of what the center pane displays.
WorkspaceView::Conversation is removed as a center-pane state — the center
pane now shows File/Diff/Run or an empty placeholder ("No file open") via
WorkspaceNavigation.current: Option<WorkspaceView>.

- layout.rs: new sidebar region, feedback/queue/input scoped to its width
  instead of full-window; bottom panel stays under files+chat only
- Approval card stays docked to the (wider) center pane rather than the
  sidebar — cramming safety-critical approval text into the sidebar's
  column wrapped it illegibly
- Fixed a latent bug in approval_card_dock_height(): it didn't account for
  word-wrap at the actual render width, so a narrow dock could truncate
  the card's action buttons
- Dropped the Enter-key "activate activity summary" shortcut (no trigger
  point left without a new focus concept); mouse click still works via a
  new Sidebar hit target used for scroll routing
mohitranka added a commit that referenced this pull request Sep 11, 2026
…orkspace view (#241)

Introduces a new sidebar layout region that always shows the conversation
transcript and composer, regardless of what the center pane displays.
WorkspaceView::Conversation is removed as a center-pane state — the center
pane now shows File/Diff/Run or an empty placeholder ("No file open") via
WorkspaceNavigation.current: Option<WorkspaceView>.

- layout.rs: new sidebar region, feedback/queue/input scoped to its width
  instead of full-window; bottom panel stays under files+chat only
- Approval card stays docked to the (wider) center pane rather than the
  sidebar — cramming safety-critical approval text into the sidebar's
  column wrapped it illegibly
- Fixed a latent bug in approval_card_dock_height(): it didn't account for
  word-wrap at the actual render width, so a narrow dock could truncate
  the card's action buttons
- Dropped the Enter-key "activate activity summary" shortcut (no trigger
  point left without a new focus concept); mouse click still works via a
  new Sidebar hit target used for scroll routing
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