Repository navigation
Description
Current status, September 22
The separate issue_version design is approved in the comments, but no implementation has landed or is open for review. The September 13 follow-up deadline passed without a response, so this is available for someone else to take. Preserve the approved coalescing, restore and permission requirements below.
Original requirements
What is painful today
An issue description can be rewritten by anyone on the team, and once it is saved the previous wording is gone. The autosave means there is not even a moment where someone decides to overwrite it: they select, type, and the old text is unrecoverable.
This matters most on the descriptions that took work. A repro with exact steps, a spec written over a week, an incident writeup. Someone tidies it, trims what looked redundant, and the detail that made it useful goes with it. The activity feed records that the description changed, but not what it changed from, so there is nothing to go back to.
Docs already solve this. doc_version snapshots content, /api/docs/[id]/versions lists them, doc-history.tsx shows them, and a doc can be restored to any earlier version. Issue descriptions are edited in the same editor, by the same people, with the same autosave, and have none of it. Linear treats these the same way through a single "Show description history" action, which is where I noticed the gap.
What you would like to happen
Issue descriptions get version history, built the same way docs already have it rather than as a second mechanism.
Roughly:
- An
issue_versiontable mirroringdoc_version: the issue, the org, the description at that point, who saved it, when, and what it was restored from. - A snapshot on description save, coalescing successive saves by the same person inside a short window so autosave does not produce a version per keystroke.
snapshotVersionindoc-service.tsalready does exactly this collapsing and is the thing to follow. GET /api/issues/[id]/versionsand a restore route, both going throughpackages/shared/src/policythe way the doc routes do.- A "Show description history" entry in the existing issue actions menu, opening a panel that lists versions by author and time and can restore one.
doc-history.tsxis the model. - Restoring writes a new version first, so a restore is itself undoable and never destroys what it replaced.
Out of scope for a first pass: history for the title, for comments, or for property changes. The activity feed already covers properties, and descriptions are where the loss actually hurts.
Which part of Orbit
Issues, lists and boards
How you work around it now
Nothing reliable. If it is noticed quickly the author may still have the text in a scratch file or remember what was there. Otherwise it is rewritten from memory, which is how a good repro turns into a vague one.
Anything else
I would like to build this, and I want to agree the shape first because it adds a table.
Open questions I would rather settle before writing code:
- A new table, or generalise
doc_version? A separateissue_versionmirrors the existing code most directly and keeps the foreign keys honest. Generalisingdoc_versioninto a polymorphic content-version table would avoid the duplication but touches a working feature. I lean towards the separate table and would rather be told otherwise now than in review. - How long are versions kept? Docs keep them indefinitely as far as I can tell. Issues are far more numerous, so the same policy is a different amount of storage. A cap per issue, or an age cutoff, may be worth having from the start.
- Does a version snapshot need to fan out over realtime? Docs allocate a
syncIdon the version row. I do not think another tab needs to learn about a new version until it opens the panel, but I would rather match whatever the doc side does on purpose than diverge by accident.
Context: this came out of a pass over the issue detail surface. The smaller fixes from that pass are in #306.
Activity
imshashank commentedon Aug 23, 2026
The proposed shape is approved.
issue_versiontable rather than makingdoc_versionpolymorphic.restoredFromId, and make every restore itself recoverable.Please include schema migration and catchup, service and route tests for cross-workspace access, coalescing, restore, restore-of-restore, and the issue history panel. Please proceed with this 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.