Skip to content

feat(ghost): Stamp hands the ghost back to the cursor (STAMP-PICKUP) - #333

Merged
realrobertdouglas merged 1 commit into
mainfrom
claude/ghost-stamp-pickup
Oct 13, 2026
Merged

realrobertdouglas merged 1 commit into
mainfrom
claude/ghost-stamp-pickup

Conversation

@realrobertdouglas

Copy link
Copy Markdown
Contributor

Wendi: "i want the text and box to go away after using a ghost stamp." The box and the word Typical are the ghost itself, which survived its own stamp by design so it could be dragged to the next spot and stamped again; clearing it meant right-click, Delete ghost, after every stamp.

  • Stamp lands the marks and hands the ghost back to the cursor, grabbed where the menu was opened, as it rides between capture and the first drop. Nothing stays over the marks just stamped. The next click drops it on the next spot; Esc lets it go ("Ghost dropped. The stamped marks stay."); any other tool orphans it as before.
  • Undo of a stamp takes the marks back and puts the ghost back on the sheet, so the copy in hand is dropped rather than doubled; a ghost in hand from a capture is untouched by an unrelated undo.
  • ghost.spec.js gains the test (stamp, in hand with the grab point, the next drop, stamp again, Esc, undo and redo, a captured ghost's undo). ARCHITECTURE row, CHANGELOG, sw.js and the TOC restamped.

npm run check all 14 steps; ghost.spec.js 17/17; duct-ghost and esc-ladder specs pass; walked in the browser on test-page.pdf (capture, place, Stamp from the menu, the ghost riding the pointer with nothing over the stamped marks, Esc leaving only real marks).

🤖 Generated with Claude Code

Wendi: "i want the text and box to go away after using a ghost stamp."
The box and the word Typical are the ghost itself, which survived its
own stamp by design so it could be dragged to the next location and
stamped again; clearing it meant right-click, Delete ghost, after every
stamp. The next stamp is served better by carrying the ghost than by
leaving it.

- Stamp lands the marks and hands the ghost back to the cursor, grabbed
  where the menu was opened, as it rides between capture and the first
  drop. Nothing stays over the marks just stamped. The next click drops
  it on the next spot; Esc lets it go ("Ghost dropped. The stamped marks
  stay."); any other tool orphans it as before.
- Undo of a stamp takes the marks back and puts the ghost back on the
  sheet, so the copy in hand is dropped rather than doubled
  (state.placingGhostFromStamp, read by app.js undo/redo through
  dropGhostPickedUpByStamp); a ghost in hand from a capture is untouched
  by an unrelated undo.
- features/ghost.js, app.js, ghost.spec.js (the new test: stamp, in hand
  with the grab point, the next drop, stamp again, Esc, undo and redo, a
  captured ghost's undo), the ARCHITECTURE row, CHANGELOG, sw.js and the
  TOC restamped.

npm run check: all 14 steps pass. ghost.spec.js 17/17; duct-ghost and
esc-ladder specs pass. Walked in the browser on test-page.pdf: capture,
place, Stamp from the menu, the ghost riding the pointer with nothing
over the stamped marks, Esc leaving only real marks.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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