Skip to content

fix(app): disable undo without git#37578

Open
opencode-agent[bot] wants to merge 2 commits into
devfrom
undo-git-guard
Open

fix(app): disable undo without git#37578
opencode-agent[bot] wants to merge 2 commits into
devfrom
undo-git-guard

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • gate session Undo, Redo, and message Revert actions on the current project's Git state
  • disable visible Revert/Restore controls for non-Git projects and explain why in localized tooltips
  • add focused Git/non-Git command and command-palette regression coverage

Tests

  • bun test --preload ./happydom.ts ./src/pages/session/session-history-actions.test.ts
  • bun typecheck (packages/app)
  • bun typecheck (packages/session-ui)

Requested by: @jayair (Jay V via Slack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant