Skip to content

fix: restore pending edits before apply#2327

Open
GTC2080 wants to merge 1 commit into
esengine:v1from
GTC2080:GTC/fix-apply-pending-edits
Open

fix: restore pending edits before apply#2327
GTC2080 wants to merge 1 commit into
esengine:v1from
GTC2080:GTC/fix-apply-pending-edits

Conversation

@GTC2080
Copy link
Copy Markdown

@GTC2080 GTC2080 commented May 30, 2026

Summary

  • Restore saved pending edit queues when /apply or /discard runs with an empty in-memory queue.
  • Keep review-mode queued edits recoverable after a session restart or delayed mount hydration.

Validation

  • npm test -- tests/use-code-mode-pending-apply.test.tsx tests/pending-edits.test.ts tests/slash.test.ts tests/review-edit-gate.test.ts
  • npx biome check src/cli/ui/hooks/useCodeMode.ts tests/use-code-mode-pending-apply.test.tsx
  • npm run typecheck
  • npm run verify

Review Evidence

Fixes #2256

@esengine esengine added the v1 Legacy TypeScript line (0.x) — v1 branch, maintenance only label May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1 Legacy TypeScript line (0.x) — v1 branch, maintenance only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

改动项排队确认,无法/apply 确认改动

2 participants