Skip to content

Add TTD timestamp history navigation (back/forward)#1013

Merged
xusheng6 merged 1 commit intodevfrom
test_ttd_navigate
Mar 19, 2026
Merged

Add TTD timestamp history navigation (back/forward)#1013
xusheng6 merged 1 commit intodevfrom
test_ttd_navigate

Conversation

@xusheng6
Copy link
Member

Summary

  • Record the TTD position every time the target stops and maintain a navigable history stack
  • Add Shift+ESC (back) and Ctrl+Shift+ESC (forward) shortcuts to navigate through TTD timestamp history
  • Add toolbar buttons and main menu entries for the navigation actions
  • Full API support across C++ core, FFI, C++ API wrapper, and Python bindings

Fixes #932

TODO

  • Need dedicated left/right arrow icons for the toolbar buttons (currently reusing resume/resume-reverse icons in cyan)

Test plan

  • Open a TTD trace, step/run to several positions, verify Shift+ESC goes back to previous timestamps
  • Verify Ctrl+Shift+ESC goes forward after navigating back
  • Verify toolbar buttons enable/disable correctly based on history state
  • Verify history is cleared when the target exits or detaches
  • Verify navigating back then stepping creates a new branch in history (truncates forward entries)
  • Test Python API: controller.ttd_navigate_back(), controller.ttd_navigate_forward(), controller.can_ttd_navigate_back, controller.can_ttd_navigate_forward

🤖 Generated with Claude Code

Record the TTD position every time the target stops and allow navigating
back and forth through the history with Shift+ESC / Ctrl+Shift+ESC.
Adds toolbar buttons, menu items, and full API support (C++, FFI, Python).
Fixes #932.

TODO: Need dedicated left/right arrow icons for the toolbar buttons.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@xusheng6 xusheng6 merged commit 3822d2f into dev Mar 19, 2026
1 check passed
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.

Create shift+ESC shortcut that goes back to the last time stamp

1 participant