Skip to content

onspot v3.5.0: Go back on each pin - #2

Merged
jstadev merged 1 commit into
mainfrom
feat/go-back
Nov 14, 2026
Merged

jstadev merged 1 commit into
mainfrom
feat/go-back

Conversation

@jstadev

@jstadev jstadev commented Nov 14, 2026

Copy link
Copy Markdown
Owner

A closed pin with a live fix gets a Go back button in its card. You choose the version: the page before the pin, or the page after an earlier fix. POST /api/pins/:id/revert { commit } (users only) queues the pin with revert. The runner then starts one revert run: it undoes the later commits newest first, ships the old version and closes the pin.

Contract: docs/protocol.md v3.5 (Pin versions, revert, revertedAt; status change revert; runner item 16; card item 10).

  • Server: the new store fields and the users-only revert transition. On first open, the store reads versions from the Done: replies. The detail and list formats show the new fields, and the verdict has a revert rule.
  • Runner: a revert run never joins bulk mode. It starts lean with the project card. Its effort and retry count from the request. The prompt comes from buildRevertPrompt.
  • Extension 0.6.0: the Go back panel with the version choice, the "Going back" and "Reverted" labels, the toasts and the Log chips.
  • Fix: a resolve with a 4000-character summary no longer fails with 400.
  • Fix: pins ship now commits a file deletion that git revert already staged.

Tests: server 166, runner 143, extension 84, e2e helpers 12; harness 59 groups in Chromium and 59 in Firefox; deploy/caddy.check.mjs passes.

A closed pin with a live fix has a "Go back" button in its card. He
chooses the version (the page before the pin, or after an earlier fix);
POST /api/pins/:id/revert queues a revert run that undoes the later
commits newest first, ships the old version and closes the pin.

- store: versions (live fix commits), revert, revertedAt; users-only
  revert transition; backfill of versions from the Done replies
- runner: revert runs never join bulk, start lean with the project card,
  count effort and retry from the request; buildRevertPrompt
- CLI and MCP detail: versions, go back, reverted; revert verdict
- extension 0.6.0: Go back panel with the version choice, Going back and
  Reverted labels, toasts and Log chips
- fix: a 4000-character summary no longer fails the resolve reply
- fix: pins ship commits a file deletion that git revert staged already
@jstadev
jstadev merged commit 2c67347 into main Nov 14, 2026
1 check passed
@jstadev
jstadev deleted the feat/go-back branch November 14, 2026 11:48
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.

1 participant