Skip to content

fix: separate command and conversation state boundaries - #43

Open
HiAriesZhou wants to merge 5 commits into
mainfrom
fix/state-boundaries
Open

HiAriesZhou wants to merge 5 commits into
mainfrom
fix/state-boundaries

Conversation

@HiAriesZhou

@HiAriesZhou HiAriesZhou commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Help, invalid CLI arguments and restored queued drafts could trigger unintended mutations, while failed credential reads could hide later key changes. Parse before store access, restore text/attachment/image together, track credential revisions independently of caches, and propagate deletion failures. Explicit reset clears only the current service and selected legacy provider; unrelated provider keys remain intact. Store initialization is pure and partial edits validate against a read-only snapshot before migration.

Validation: old-code sequence regressions ran red, including partial credential deletion with an active queue. After round-1 review fixes, 82 targeted tests passed; independent check round 2 found no remaining issues and reran 7 related tests. PR CI 43774701356 passed on 2eee2c1. Combined four-stage CI 43774701902 passed all 278 tests and signed build on 225d0c6; the same combined source also passed a local Developer ID universal build. Actual signed-binary help/reset-help exited 0, invalid reset options exited 1. Fixtures use synthetic keys; real credential deletion/provider requests were not performed.

Three logical commits; no version/schema bump. Revert the commits to restore prior behavior. Maintainer review remains required for credential/deletion paths before merge.

Programmatic draft restoration previously entered deferred paste conversion; failed key reads also removed the only key-change observer. New sequence tests fail on the old behavior and pass after isolating restoration and tracking the observed credential revision.
…etion failures

Parse help and all arguments before accessing persistent stores. Preserve failed resets for retry, clear pending legacy setup only after successful deletion, and invalidate cached credentials before deletion attempts. Regression fixtures ran red on the previous command/reset paths, including partial deletion with an active queue; full suite253 and Developer ID universal build passed.
@vercel

vercel Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
howler Ready Ready Preview Nov 26, 2026 4:17am UTC

Legacy models are preferences rather than credential ownership. Delete only the selected provider and validate partial edits against a pure snapshot before migration. Five regression fixtures ran red before the fix; 82 targeted tests pass.
Keep staged direct settings separate from the active subscription. Write a candidate credential before retiring the previous one and surface cleanup failures before committing a switch. Cover failed activation and reset with synthetic credentials.
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