Skip to content

Step history with side buttons on every view that shows the arrows - #2

Merged
AlexThunder1989 merged 1 commit into
AlexThunder1989:mouse-side-buttons-workspace-historyfrom
syjeon121:syjeon/side-buttons-on-history-views
Nov 24, 2026
Merged

AlexThunder1989 merged 1 commit into
AlexThunder1989:mouse-side-buttons-workspace-historyfrom
syjeon121:syjeon/side-buttons-on-history-views

Conversation

@syjeon121

Copy link
Copy Markdown

Hi @AlexThunder1989! This is a small follow-up for stablyai#34463, opened against your branch so it lands in your PR if you want it.

What it fixes

The title-bar ← → arrows show on Tasks, Automations, Artifacts and Skills too, and those pages are entries in the same history. But navigateWorktreeHistory only allowed activeView === 'terminal'. So on those pages the arrows work while the side buttons do nothing. The same happens for history shortcuts that come in through onWorktreeHistoryNavigate from the main process.

I reproduced this on Windows 11 with a real mouse: on the Tasks page, the title-bar ← works and mouse Back does nothing.

Change

The check now uses shouldShowWorktreeHistoryControls(store.activeView), the same rule that decides when the arrows are shown. The renderer keybinding path in app-command-handlers.ts already uses it. Views without the arrows, such as Settings, still do nothing.

Testing

  • Added one case to workspace-shortcut-ipc-bridge.side-buttons.test.ts: side button on the Tasks view steps history. It fails without the change and passes with it. The other 3 cases still pass.
  • oxlint and oxfmt are clean, and the pre-commit hooks passed.

🤖 Generated with Claude Code

The bridge gated on activeView === 'terminal', but the title-bar arrows also
show on Tasks, Automations, Artifacts and Skills, whose pages are history
entries. Side buttons (and main-process history shortcuts) did nothing there
while the arrows worked. Gate on shouldShowWorktreeHistoryControls instead,
the rule the arrows and the renderer keybinding path already use.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AlexThunder1989
AlexThunder1989 merged commit 64f89ea into AlexThunder1989:mouse-side-buttons-workspace-history Nov 24, 2026
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.

2 participants