Repository navigation
Description
Current status, September 22
Implementation is open in #479 by @abdul-rahman-0x. Changes are still requested for two overlapping edits when the later edit succeeds before the earlier edit fails: undo must restore the last saved value, not the failed optimistic value. Keep this issue open until the regression and fresh CI pass.
Original requirements
What is painful today
Orbit is fast enough that a property gets changed by accident. Press s, the status menu opens, an arrow key and Enter land on the wrong row, and the issue is now Done. Or the wrong issue is selected in a list and an assignee is set on it.
At that point Cmd+Z is the reflex, and nothing happens. Undo exists inside every text surface, so the reflex is trained: it works in the issue description, in the issue title, and in the comment composer, because TipTap and the browser handle it there. It is only property changes that have no undo, which is the least obvious place for the gap to be.
Recovering means remembering what the value was before. The activity feed records the change, so the old value is on screen, but putting it back is a manual round trip through the same menu that just went wrong. On a keyboard first product this is the one place the keyboard cannot get you out of what the keyboard got you into.
Reproduced on the seeded demo workspace, on main at 0c0b301:
- Open
/issue/ENG-2, note the status is In Progress. - Click the status property and pick Done.
- Click on the page background and press
Cmd+Z. - Status is still Done.
Same with estimate, assignee, priority, labels, project and sprint.
What you would like to happen
Cmd+Z undoes the last property change made in this tab, and says so.
The narrow version, which is what I would like to build:
- A small stack of recent property changes, each holding the issue and the patch that puts it back. Capped at something like 20, and living for the session only, not persisted.
Cmd+Zpops the top entry and applies the inverse through the existinguseUpdateIssuemutation, so it travels the same server path, the same policy check and the same realtime fan out as the original change. An undo is an ordinary write, not a special case.- A toast confirming what was reverted, so undo is visible rather than silent.
Cmd+Shift+Zto redo the entry just undone.- The binding registers with
allowInInput: falseso it never competes with TipTap or a native input. Text undo keeps working exactly as it does now, and the two never fight. - If the server refuses the inverse write, the entry is dropped and the toast says it could not be undone, rather than leaving the stack out of step with the server.
Deliberately out of scope, unless you want them in: undoing a board drag, undoing a create or a delete, and undoing another person's change. Each of those is a different shape, and a stack that mixes them gets hard to reason about quickly. Property changes alone cover the accident that actually happens.
Which part of Orbit
Issues, lists and boards
How you work around it now
Read the old value off the activity feed and set it back by hand. It works, and it costs about ten seconds and a small amount of trust every time.
Anything else
Happy to build this if the shape sounds right, and happy to adjust it first. Two things I would want your call on before writing code:
- Session only, or persisted? I am assuming an in memory stack that dies with the tab. Persisting undo across reloads raises questions about what happens when someone else has changed the issue since, and I would rather not answer those in the first version.
- Does undo appear in the activity feed as its own entry, or does it read as a normal change? I lean towards a normal change, because that is what it is on the server, but it does mean the feed shows a change and then a change back with nothing marking the second as an undo.
Context: I opened #306 for some smaller issue property fixes, and found this while checking whether Cmd+Z was broken somewhere. It is not broken anywhere, it just does not exist for actions.
Activity
github-actions commentedon Aug 13, 2026
Thanks for opening your first issue on Orbit.
A maintainer will triage this. If it is a bug, the fastest way to move it
along is exact steps to reproduce starting from the seeded demo workspace,
since that is what we run locally.
If you fancy fixing it yourself, CONTRIBUTING.md
walks through the setup. You need Bun and Docker, and nothing else.
imshashank commentedon Aug 23, 2026
The narrow shape is approved, with one concurrency requirement before implementation.
Decisions:
The safety requirement is server-enforced compare-and-set behavior. Before applying an inverse, the server transaction must verify that the current property still equals the value this tab wrote. A client-cache check alone has a race. If another tab or person changed it, refuse the undo, discard that entry, keep the newer value, and announce that it could not be undone because the issue changed elsewhere.
Please cover undo, redo, stack cap, redo clearing, input/editor isolation, a refused server write, and a realtime/current-value conflict. If you still want to build it, please proceed with that scope.
imshashank commentedon Sep 6, 2026
@Tanzeelsameen the shape was approved on Aug 23 and nothing has landed yet. Are you still planning to build this? If I have not heard by Sep 13 I will drop the
readymarker so someone else can pick it up. No pressure either way, I just want the label to be honest.abdul-rahman-0x commentedon Sep 18, 2026
Hi @imshashank, since the Sep 13 deadline passed and the ticket remained unassigned, I have implemented this following the approved narrow shape and concurrency requirements in PR #479
useHotkeybindings formod+z(undo) andmod+shift+z(redo) configured withallowInInput: falsefor complete TipTap and text input isolation.packages/core/src/work/issue-service.ts, rejecting any undo if the database state drifted.packages/shared/tests/validators/issue-undo.test.ts, with all unit test suites passing cleanly.The PR is open and ready for your review!