Skip to content

feat: surface config errors in hook output with additional context#50

Open
dgerlanc wants to merge 1 commit into
mainfrom
feat/config-error-context
Open

feat: surface config errors in hook output with additional context#50
dgerlanc wants to merge 1 commit into
mainfrom
feat/config-error-context

Conversation

@dgerlanc

Copy link
Copy Markdown
Owner

Summary

  • Add AdditionalContext field to SpecificOutput for richer hook responses
  • When mmi config fails to load, return an ask decision with a descriptive error message and context directing the user to run mmi validate, instead of silently falling back to "command not in allow list"
  • Add FormatAskWithContext() helper for producing ask output with additional context

Test plan

  • New test TestProcessWithResultConfigErrorInOutput validates output contains config error info and mmi validate suggestion
  • Manually verify with a broken config that Claude sees the helpful error context

When mmi config fails to load, return an ask decision with a helpful
error message and additional context directing the user to run
'mmi validate', instead of silently falling back to "not in allow list".
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