Files
hermes-agent/apps
kshitijk4poor 0faf0938eb refactor(desktop): split the edit deep-cut phases out of runEdit; move the deep-cut tests into a sibling
The repo code-health ratchet blocked the push on two counts:
- runEdit had cyclomatic complexity 31 against a target of 20.
- index.test.tsx grew past its main-branch cap.

The pure steps move to rewind.ts:
- planEditAfterConfirm: plan, confirm, session-ownership check and
  re-aim.
- retryKeepsDeepConfirm: the stale-retry consent rule.

The hook gains retryStaleEdit, which holds the existing #82462 retry
unchanged apart from the consent rule, and rollBackEdit.
isCompressedAwayError becomes module-level. runEdit is now at CC 20.

The usePromptActions test harness moves to prompt-actions-harness.tsx.
The #133716 hook tests move to index.deep-cut.test.tsx, plus a new test
for a later user turn arriving during the dialog, which goes red with
the "moved" outcome removed. index.test.tsx drops below its main-branch
size. No behaviour change otherwise.
2026-10-11 12:14:05 +05:30
..