Skip to content

feat: add jump-to-message keybind in timeline dialog#14928

Open
gab-core wants to merge 2 commits intoanomalyco:devfrom
gab-core:feature/timeline-jump-to-message
Open

feat: add jump-to-message keybind in timeline dialog#14928
gab-core wants to merge 2 commits intoanomalyco:devfrom
gab-core:feature/timeline-jump-to-message

Conversation

@gab-core
Copy link
Copy Markdown

@gab-core gab-core commented Feb 24, 2026

Issue for this PR

No existing issue — this addresses a usability gap in the /timeline command.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The /timeline command lets you browse through your past messages in a session. As you navigate the list, it already scrolls the conversation in the background to the highlighted message (onMove). However, pressing Enter forces a second dialog (DialogMessage) with three actions: Revert, Copy, or Fork. There is no way to simply jump to a message and stay in the conversation.

This PR adds a secondary keybind ("Jump", default tab) inside the timeline dialog. When triggered, it scrolls to the selected message and closes the dialog — the user stays exactly where they jumped to, without any forced action.

The existing Enter behavior is unchanged (still opens the message actions dialog), so this is not a breaking change.

Implementation details:

  • dialog-timeline.tsx: passes the keybind prop to DialogSelect (same pattern used in dialog-session-list.tsx for delete/rename). The keybind calls props.onMove(option.value) to scroll, then dialog.clear() to close.
  • config.ts: adds session_timeline_jump keybind entry (default: tab), so users can remap it.
  • types.gen.ts: regenerated SDK types to include the new keybind field.

How did you verify your code works?

  • TypeScript type check passes (bun tsc --noEmit in packages/opencode)
  • SDK regenerated successfully with ./packages/sdk/js/script/build.ts
  • Reviewed the DialogSelect keybind pattern in dialog-session-list.tsx to ensure consistency

Screenshots / recordings

N/A — TUI change, the "Jump tab" hint appears at the bottom of the timeline dialog.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Add a 'Jump' keybind (default: tab) to the timeline dialog that scrolls
to the selected message and closes the dialog, allowing users to navigate
to a specific message without being forced to choose an action (Revert,
Copy, Fork).

Enter still opens the message actions dialog as before.
@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Feb 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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