Skip to content

fix(cli): use formatZodError for invalid settings.yaml warning - #596

Closed
kicchann with Copilot wants to merge 1 commit into
mainfrom
copilot/sub-pr-594-again
Closed

kicchann with Copilot wants to merge 1 commit into
mainfrom
copilot/sub-pr-594-again

Conversation

Copilot AI commented Mar 2, 2026 •

Copy link
Copy Markdown

loadProjectSettings was using result.error.message for the invalid setting.yaml warning, producing hard-to-read Zod error output. The codebase already exports formatZodError from @reqord/shared and uses it consistently elsewhere.

Changes

  • project-settings-service.ts: Replace result.error.message with formatZodError(result.error) in the validation failure warning, and add formatZodError to the @reqord/shared import
// Before
`[reqord] Invalid setting.yaml: ${result.error.message}. Using default settings.`

// After
`[reqord] Invalid setting.yaml:\n${formatZodError(result.error)}\nUsing default settings.`

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] WIP to address feedback on formatZodError usage fix(cli): use formatZodError for invalid settings.yaml warning Mar 2, 2026
Base automatically changed from feature/spec-000035-project-settings-schema to main March 2, 2026 05:38
@kicchann kicchann closed this Mar 2, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants