qwen-code/docs
jinye 9e4c87a7e4
refactor(core): remove GitService, migrate /restore to FileHistoryService (#4871)
* refactor(core): remove GitService, migrate /restore to FileHistoryService

Remove the shadow-git-based GitService and rewire /restore to use the
existing FileHistoryService for file restoration. This eliminates the
`checkpointing` config flag (off by default) and unifies file recovery
under `fileCheckpointingEnabled` (on by default in interactive mode).

Key changes:
- /restore now calls FileHistoryService.rewind(promptId, true) instead
  of GitService.restoreProjectFromSnapshot(commitHash)
- File restoration runs before conversation history replacement to
  avoid inconsistent state on failure
- Legacy checkpoint files (commitHash format) are explicitly rejected
- Fix EDIT_TOOL_NAMES bug: 'replace' → ToolNames.EDIT, add
  ToolNames.NOTEBOOK_EDIT (checkpoint creation and AUTO_EDIT
  auto-approval were broken for edit tool)
- Add isClientInitiated guard to prevent redundant checkpoint creation
  from /restore re-submitted tool calls
- Remove checkpointing settings schema, CLI flag, docs, and all
  GitService references across 27 files

🤖 Generated with [Qwen Code](https://github.com/QwenLM/qwen-code)

* fix: address wenshao review — improve error message, add tests, remove tombstones

- Improve partial-restore warning: show files reverted/failed count
- Add 3 tests: legacy format rejection, rewind partial failure, rewind exception
- Remove dead tombstone comments in config.test.ts

🤖 Generated with [Qwen Code](https://github.com/QwenLM/qwen-code)

* fix: align restore success message with turn-level semantics

🤖 Generated with [Qwen Code](https://github.com/QwenLM/qwen-code)
2026-06-09 18:34:31 +08:00
..
design feat(telemetry): Phase 3 — qwen-code.subagent span with concurrent isolation (#3731) (#4410) 2026-06-05 17:12:34 +08:00
developers feat(installer): verify release assets + switch public docs to standalone entrypoint (#3855) 2026-06-04 17:23:04 +08:00
e2e-tests feat(worktree): Phase D — startup --worktree flag + symlinkDirectories + PR refs (#4381) 2026-05-27 17:04:51 +08:00
plans feat(core)!: redesign auto-compaction thresholds with three-tier ladder (#4345) 2026-05-25 21:11:08 +08:00
superpowers/plans feat(computer-use): zero-config built-in via open-computer-use MCP (#4590) 2026-05-29 10:39:51 +08:00
users refactor(core): remove GitService, migrate /restore to FileHistoryService (#4871) 2026-06-09 18:34:31 +08:00
verification/abort-controller-refactor fix(core): stop AbortSignal listener leak in long sessions (MaxListenersExceededWarning) (#4366) 2026-05-26 14:21:49 +08:00
_meta.ts feat: refactor docs 2025-12-05 10:51:57 +08:00
index.md fix: lint issues 2025-12-19 15:52:11 +08:00