Skip to content

feat(commands): finish #59 remainder — unify /rewind, remove dead ide#71

Merged
BunsDev merged 2 commits into
mainfrom
issue-59-phase2-command-cut
Jun 11, 2026
Merged

feat(commands): finish #59 remainder — unify /rewind, remove dead ide#71
BunsDev merged 2 commits into
mainfrom
issue-59-phase2-command-cut

Conversation

@BunsDev

@BunsDev BunsDev commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up to #68, which closed #59 with two bullets incomplete:

1. Actually unify /undo / /revert / /rewind (#68 only hid the first two).
After #68, file rollback was reachable only through hidden commands — once the one-release compatibility aliases are removed, the capability would have disappeared from the surface entirely. Now /rewind is the single visible entry point:

  • /rewind — interactive conversation-rewind overlay (unchanged)
  • /rewind list / /rewind diff [n] / /rewind last / /rewind <n> / /rewind <uuid> — forward to the shadow-git revert paths absorbed from /undo and /revert

/undo and /revert stay hidden one-release aliases exactly as #68 left them.

2. Verify the ide command's integration; remove if dead (issue bullet #68 skipped).
Verified dead:

  • IdeCommand suggests code --install-extension coven-code.coven-code — no such extension is published on the VS Code Marketplace or Open VSX, and none of the 45 OpenCoven org repos is an editor extension.
  • The ~/.coven-code/ide/*.lock files it reads are written only by that nonexistent extension, so the connection-status surface can never show anything.
  • Real IDE support is the ACP surface (coven-code acp), which is untouched.

Removed: the ide named command + slash adapter, the now-orphaned claurst_core::ide detection module (detect_ide / IdeKind had no other consumers), autocomplete/help/category entries, and docs rows.

Verification

  • cargo fmt -p claurst-commands -p claurst-tui --check
  • cargo test -p claurst-commands (78 passed, incl. 2 new rewind-routing tests)
  • cargo test -p claurst-core (472 passed)
  • cargo test -p claurst-tui
  • cargo check -p claurst
  • grep -rn "detect_ide|IdeKind|IdeCommand|extension_install_command" crates → no matches

Refs #59

🤖 Generated with Claude Code

BunsDev and others added 2 commits June 10, 2026 23:10
/rewind with arguments now forwards to the shadow-git revert paths
(list, diff, last, <n>, <uuid>) so file rollback stays discoverable
through the one visible rewind command. Bare /rewind keeps the
interactive conversation-rewind overlay. Completes the rewind bullet
of #59 that #68 only hid.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Issue #59 asked to verify whether the ide integration actually works
for coven-code. It cannot: the command suggests installing a
coven-code.coven-code editor extension that is not published anywhere
(VS Code marketplace, Open VSX, OpenCoven org), and the
~/.coven-code/ide/*.lock files it reads have no writer without that
extension. Real IDE support remains the ACP surface (coven-code acp).
Removes the named command, its slash adapter, and the now-orphaned
core::ide detection module.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 11, 2026 04:17
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Jun 11, 2026 4:17am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR completes the remaining work from issue #59 by (1) making /rewind the single discoverable entry point for both conversation rewind and shadow-git file rollback, and (2) removing the non-functional ide command surface plus the now-orphaned core IDE-detection module.

Changes:

  • Route /rewind <args> to the existing shadow-git rollback implementation (former /undo + /revert paths), while keeping bare /rewind as the interactive rewind overlay.
  • Remove the ide named command, its slash adapter, and claurst-core’s ide module exports; update command lists/docs accordingly.
  • Add/adjust command tests to cover the new /rewind routing behavior.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src-rust/crates/tui/src/app.rs Removes /ide from autocomplete and updates /rewind description to reflect file rollback routing.
src-rust/crates/core/src/lib.rs Drops core::ide module + re-exports (detect_ide, IdeKind).
src-rust/crates/core/src/ide.rs Deletes IDE environment detection implementation (now unused).
src-rust/crates/commands/src/named_commands.rs Removes IdeCommand and updates the named-command registry/tests accordingly.
src-rust/crates/commands/src/lib.rs Implements /rewind arg routing to RevertCommand, removes /ide adapter, updates help text and tests.
docs/superpowers/plans/2026-06-10-issue-59-remainder.md Adds an implementation plan document capturing the steps/evidence for the changes.
docs/commands.md Updates /rewind docs and removes /ide from adapters and named-command listings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +5189 to +5195
/rewind list — list assistant turns with recorded file changes\n\
/rewind diff [n] — preview a turn's diff without reverting\n\
/rewind last — revert the most recent assistant turn\n\
/rewind <n> — revert the n-th most recent assistant turn\n\
/rewind <uuid> — revert the turn whose message id starts with <uuid>\n\n\
The legacy /undo and /revert commands remain hidden one-release\n\
compatibility aliases for the argument forms."
Comment thread docs/commands.md
Comment on lines +134 to +136
/rewind last — revert the most recent assistant turn
/rewind <n> — revert the n-th most recent assistant turn
/rewind <uuid> — revert the turn whose message id starts with <uuid>
@BunsDev BunsDev merged commit 476a0e9 into main Jun 11, 2026
2 checks passed
@BunsDev BunsDev deleted the issue-59-phase2-command-cut branch June 11, 2026 04:20
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.

Phase 2 command consolidation: 72 → ~40 slash commands

2 participants