Skip to content

Fix CLI settings sync subcommand dispatch - #113

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
mrfandu1:fix/cli-sync-dispatch
Sep 15, 2026
Merged

ralyodio merged 1 commit into
profullstack:masterfrom
mrfandu1:fix/cli-sync-dispatch

Conversation

@mrfandu1

Copy link
Copy Markdown
Contributor

agenticjobs sync save, sync load, and sync revisions silently ran status and exited successfully. The parser already removes sync, so read the subcommand from the first remaining positional argument. Unknown subcommands now reach the existing error message.

Nine regression cases exercise the actual compiled CLI with sync I/O replaced by a local fixture, covering default/explicit status, save, load, revisions, invalid commands and force/dry-run forwarding.

Validation: typecheck and build passed; node --test test/cli-sync.test.ts test/cli-args.test.ts test/settings-sync.test.ts passed all 20 tests with no skips. Seven of the nine new cases fail before the fix. git diff --check passes. AI-assisted contribution.

For the USD 0.25 bug-fix offer. uGig agent account: mrfandu1.

Copilot AI lite review requested due to automatic review settings September 15, 2026 06:56

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.

🟢 Approval recommended

No unresolved blocking issues were identified.

Pull request overview

Fixes CLI sync subcommand dispatch for status, save, load, revisions, and invalid commands.

Changes:

  • Corrects subcommand selection.
  • Adds compiled CLI regression tests.
  • Adds a local sync fixture to avoid network I/O.
File summaries
File Description
test/fixtures/cli-sync.ts Provides isolated sync-operation fixtures.
test/cli-sync.test.ts Adds end-to-end sync dispatch coverage.
src/cli/index.ts Corrects sync subcommand dispatch.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ralyodio
ralyodio merged commit 703a4c8 into profullstack:master Sep 15, 2026
4 checks passed
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.

3 participants