Skip to content

fix: use manager config schema for manager mode fetch commands#11

Merged
tkstang merged 2 commits into
mainfrom
claude/fix-manager-mode-config-SyhyG
Mar 10, 2026
Merged

fix: use manager config schema for manager mode fetch commands#11
tkstang merged 2 commits into
mainfrom
claude/fix-manager-mode-config-SyhyG

Conversation

@tkstang

@tkstang tkstang commented Mar 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Manager mode fetch commands (fetch all, fetch github, fetch jira) were broken — they loaded the manager config against the IC schema (ConfigSchema), causing immediate validation errors like github.username: Required and fetch: Required
  • Added fetch (since/until) field to ManagerConfigSchema and updated the init wizard to prompt for it
  • Added buildReportConfig() helper that bridges manager config + per-report config into IC-compatible Config objects, replacing fragile spread-based overrides in all three fetch commands

Changes

  • src/core/types/manager.ts — new ManagerFetchConfigSchema, added fetch to ManagerConfigSchema
  • src/cli/commands/fetch/fetch-manager.utils.ts — new loadManagerConfigForFetch() and buildReportConfig() functions
  • src/cli/commands/fetch/all.ts — use new helpers instead of loadConfig() + manual overrides
  • src/cli/commands/fetch/github/index.ts — same fix
  • src/cli/commands/fetch/jira/index.ts — same fix
  • src/cli/commands/init/index.ts — manager init now prompts for time range

Test plan

  • Run init --mode manager and verify it prompts for time range
  • Verify generated config.yaml includes the fetch field
  • Run fetch all --all-reports in manager mode — no more validation errors
  • Run fetch github --all-reports in manager mode
  • Run fetch jira --all-reports in manager mode (with JIRA configured)
  • Verify IC mode fetch commands are unaffected

https://claude.ai/code/session_01B1GMk792THEbGeAJEZbb8Q

claude added 2 commits March 10, 2026 17:34
Manager mode fetch commands (fetch all, fetch github, fetch jira) were
calling loadConfig() which validates against the IC ConfigSchema. The
manager config uses ManagerConfigSchema with a different structure
(github.org instead of github.username, no fetch field), causing
"github.username: Required" and "fetch: Required" validation errors.

Changes:
- Add fetch (since/until) field to ManagerConfigSchema
- Add time range prompt to manager mode init wizard
- Add buildReportConfig() helper to convert manager config + report
  into an IC-compatible Config for the fetch utilities
- Replace loadConfig() with loadManagerConfigForFetch() +
  buildReportConfig() in all three manager mode fetch paths

https://claude.ai/code/session_01B1GMk792THEbGeAJEZbb8Q
@tkstang tkstang force-pushed the claude/fix-manager-mode-config-SyhyG branch from 88cdcef to 73b8670 Compare March 10, 2026 17:34
@tkstang tkstang merged commit 5e1c3ad into main Mar 10, 2026
2 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.

2 participants