Repository navigation
Report missing required profile text fields as required - #12
Merged
Merged
Conversation
Creating a profile or profile action without --prompt failed with "prompt must be text of at most 1000 characters", which points at the wrong problem. The shared text check now reports "<field> is required" when a required field is absent, and keeps the length message for values that are too long. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Running
extrabrain profiles actions createorextrabrain profiles createwithout--promptfailed with:The prompt was missing, not too long. The shared
text()check insrc/profileCommands.service.tsused one message for both cases. It now reportsprompt is required(orname is required, and so on) when a required field is absent, and keeps the length message for values that are too long. The exit code is still 2 (usage), and the CLI still sends no request.Testing
--promptand checks for theis requiredmessage and that no request is sent.npm run check: typecheck passes, 175 tests pass.npm run gateway -- --proin the app repo):--promptreturns{"code":2,"message":"prompt is required"}.🤖 Generated with Claude Code