Repository navigation
Go: CLI chat with text, image, video - #14573
Conversation
Signed-off-by: Jin Hai <[email protected]>
📝 WalkthroughWalkthroughThis PR adds multimodal input support to the chat command parser. The lexer recognizes new keywords ( ChangesMultimodal Chat Support
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
🧹 Nitpick comments (2)
internal/cli/user_parser.go (1)
2415-2416: 💤 Low valueOutdated docstring example.
The first line shows the legacy positional form
CHAT 'model@instance@provider' 'hello world', but the rewritten parser only accepts the option-based syntax (WITH ... MESSAGE ...). Drop the stale example to avoid misleading users.📝 Proposed cleanup
-// CHAT 'model@instance@provider' 'hello world' -// CHAT WITH 'model@instance@provider' MESSAGE 'hello world' 'who are you' IMAGE 'url1' 'file0' VIDEO "url2.mov" "file1" FILE "url" "path file2" AUDIO "file.wav" +// CHAT WITH 'model@instance@provider' MESSAGE 'hello world' 'who are you' IMAGE 'url1' 'file0' VIDEO "url2.mov" "file1" FILE "url" "path file2" AUDIO "file.wav"🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@internal/cli/user_parser.go` around lines 2415 - 2416, Remove the stale positional example "CHAT 'model@instance@provider' 'hello world'" from the docstring so only the current option-based syntax remains (e.g., the "CHAT WITH ... MESSAGE ... IMAGE ... VIDEO ... FILE ... AUDIO ..." example). Update the docstring in internal/cli/user_parser.go where those example lines appear, deleting the legacy positional line and ensuring examples reflect the rewritten parser that requires the WITH/MESSAGE option-based form.internal/cli/user_command.go (1)
1655-1668: 💤 Low valueRemove dead commented-out legacy code.
The block of commented-out lines reflects the prior single-
messageparsing/JSON-array-content path that no longer applies to the newformattedMessagesflow. Leaving it in obscures the new logic; safer to delete and rely on git history.🧹 Proposed cleanup
- //message = strings.TrimSpace(message) - //var content interface{} = message - //if strings.HasPrefix(message, "[") && strings.HasSuffix(message, "]") { - // var parts []map[string]interface{} - // if err := json.Unmarshal([]byte(message), &parts); err == nil { - // content = parts - // } - //} - //formattedMessage := []map[string]interface{}{ - // { - // "role": "user", - // "content": content, - // }, - //}🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@internal/cli/user_command.go` around lines 1655 - 1668, Remove the dead commented-out legacy parsing block that handles single `message` JSON/unmarshal and builds a `formattedMessage` (the commented lines referencing `message`, `content`, `parts`, `json.Unmarshal`, and the `formattedMessage` slice) since the code now uses the `formattedMessages` flow; delete those commented lines from user_command.go so only the current `formattedMessages` logic remains (rely on VCS history if you need the old code).
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/cli/user_command.go`:
- Around line 1598-1625: The error messages for the type assertions on videos
and files (and the commented audios block) are incorrect and reference "images";
update the returned fmt.Errorf messages to the correct parameter names so
callers can locate the missing param—change the error in the videos check to
"videos not provided", the files check to "files not provided", and if you
re-enable the audios check change that error to "audios not provided" (search
for the variables videos, files, audios and the type assertion checks in
user_command.go to apply the fixes).
- Around line 1617-1620: The AUDIO inputs are currently ignored because the
audio handling block in internal/cli/user_command.go is commented out; restore
and implement audio support by extracting cmd.Params["audios"] into a []string
(check ok), validate entries, and add content parts named "audio_url" or
"audio_file" following the same pattern used for "image", "video", and "file"
branches so audio assets are included in the request payload; alternatively if
audio is out-of-scope for this change, modify the parser to reject AUDIO tokens
or return an error when cmd.Params["audios"] is present so users are not misled.
In `@internal/cli/user_parser.go`:
- Around line 2557-2566: In the switch over p.curToken.Type that sets verbosity
(the block using TokenLow, TokenMedium, TokenHigh), change the TokenMedium case
to set verbosity = "medium" (not "median") so the variable verbosity matches the
expected downstream value; locate the switch in user_parser.go where
p.curToken.Type is inspected and update the TokenMedium branch accordingly.
- Around line 2499-2534: The duplicate-option checks in the TokenAudio and
TokenFile branches incorrectly return "video is already set"; change the error
strings so TokenAudio returns an error like "audio is already set" and TokenFile
returns "file is already set" (update the fmt.Errorf(...) calls in the
TokenAudio and TokenFile branches in the parser loop where audios/files are
checked) so the messages match the option being duplicated.
- Around line 2535-2568: The TokenEffort and TokenVerbosity case blocks in the
parser (see TokenEffort, TokenVerbosity, and surrounding optionsLoop handling in
internal/cli/user_parser.go) prematurely terminate the optionsLoop by calling
"break optionsLoop" after setting effort/verbosity, which prevents parsing
subsequent options; remove the "break optionsLoop" statements from both the
TokenEffort and TokenVerbosity branches so the loop continues calling
p.nextToken() and processes further options until the normal terminator
(semicolon/default) is reached.
---
Nitpick comments:
In `@internal/cli/user_command.go`:
- Around line 1655-1668: Remove the dead commented-out legacy parsing block that
handles single `message` JSON/unmarshal and builds a `formattedMessage` (the
commented lines referencing `message`, `content`, `parts`, `json.Unmarshal`, and
the `formattedMessage` slice) since the code now uses the `formattedMessages`
flow; delete those commented lines from user_command.go so only the current
`formattedMessages` logic remains (rely on VCS history if you need the old
code).
In `@internal/cli/user_parser.go`:
- Around line 2415-2416: Remove the stale positional example "CHAT
'model@instance@provider' 'hello world'" from the docstring so only the current
option-based syntax remains (e.g., the "CHAT WITH ... MESSAGE ... IMAGE ...
VIDEO ... FILE ... AUDIO ..." example). Update the docstring in
internal/cli/user_parser.go where those example lines appear, deleting the
legacy positional line and ensuring examples reflect the rewritten parser that
requires the WITH/MESSAGE option-based form.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c8af47b0-ef5d-4151-b336-c3713f17d710
📒 Files selected for processing (4)
internal/cli/lexer.gointernal/cli/types.gointernal/cli/user_command.gointernal/cli/user_parser.go
| videos, ok := cmd.Params["videos"].([]string) | ||
| if !ok { | ||
| return nil, fmt.Errorf("images not provided") | ||
| } | ||
| if len(videos) > 0 { | ||
| for _, video := range videos { | ||
| if isValidURL(video) { | ||
| contents = append(contents, map[string]interface{}{ | ||
| "type": "video_url", | ||
| "video_url": map[string]interface{}{ | ||
| "url": video, | ||
| }, | ||
| }) | ||
| } else { | ||
| return nil, fmt.Errorf("invalid video URL: %s", video) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| //audios, ok := cmd.Params["audios"].([]string) | ||
| //if !ok { | ||
| // return nil, fmt.Errorf("images not provided") | ||
| //} | ||
|
|
||
| files, ok := cmd.Params["files"].([]string) | ||
| if !ok { | ||
| return nil, fmt.Errorf("images not provided") | ||
| } |
There was a problem hiding this comment.
Misleading error messages for videos/files (and commented audios).
When the type assertion fails for the videos and files slices (and the commented-out audios block), the returned errors say "images not provided". Use the correct field name so callers can locate the missing param.
🐛 Proposed fix
videos, ok := cmd.Params["videos"].([]string)
if !ok {
- return nil, fmt.Errorf("images not provided")
+ return nil, fmt.Errorf("videos not provided")
}
...
files, ok := cmd.Params["files"].([]string)
if !ok {
- return nil, fmt.Errorf("images not provided")
+ return nil, fmt.Errorf("files not provided")
}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| videos, ok := cmd.Params["videos"].([]string) | |
| if !ok { | |
| return nil, fmt.Errorf("images not provided") | |
| } | |
| if len(videos) > 0 { | |
| for _, video := range videos { | |
| if isValidURL(video) { | |
| contents = append(contents, map[string]interface{}{ | |
| "type": "video_url", | |
| "video_url": map[string]interface{}{ | |
| "url": video, | |
| }, | |
| }) | |
| } else { | |
| return nil, fmt.Errorf("invalid video URL: %s", video) | |
| } | |
| } | |
| } | |
| //audios, ok := cmd.Params["audios"].([]string) | |
| //if !ok { | |
| // return nil, fmt.Errorf("images not provided") | |
| //} | |
| files, ok := cmd.Params["files"].([]string) | |
| if !ok { | |
| return nil, fmt.Errorf("images not provided") | |
| } | |
| videos, ok := cmd.Params["videos"].([]string) | |
| if !ok { | |
| return nil, fmt.Errorf("videos not provided") | |
| } | |
| if len(videos) > 0 { | |
| for _, video := range videos { | |
| if isValidURL(video) { | |
| contents = append(contents, map[string]interface{}{ | |
| "type": "video_url", | |
| "video_url": map[string]interface{}{ | |
| "url": video, | |
| }, | |
| }) | |
| } else { | |
| return nil, fmt.Errorf("invalid video URL: %s", video) | |
| } | |
| } | |
| } | |
| //audios, ok := cmd.Params["audios"].([]string) | |
| //if !ok { | |
| // return nil, fmt.Errorf("images not provided") | |
| //} | |
| files, ok := cmd.Params["files"].([]string) | |
| if !ok { | |
| return nil, fmt.Errorf("files not provided") | |
| } |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@internal/cli/user_command.go` around lines 1598 - 1625, The error messages
for the type assertions on videos and files (and the commented audios block) are
incorrect and reference "images"; update the returned fmt.Errorf messages to the
correct parameter names so callers can locate the missing param—change the error
in the videos check to "videos not provided", the files check to "files not
provided", and if you re-enable the audios check change that error to "audios
not provided" (search for the variables videos, files, audios and the type
assertion checks in user_command.go to apply the fixes).
| //audios, ok := cmd.Params["audios"].([]string) | ||
| //if !ok { | ||
| // return nil, fmt.Errorf("images not provided") | ||
| //} |
There was a problem hiding this comment.
Audio inputs are silently dropped.
The lexer, token set, and parser all handle AUDIO ... and populate cmd.Params["audios"], but the audio-handling block here is commented out, so audio assets never reach the request payload. Either implement the audio_url/audio_file content parts (matching the image/video/file pattern) or, if audio is intentionally out-of-scope for this PR, reject AUDIO at parse time so users aren't misled into thinking audio works.
🐛 Suggested implementation (mirrors video/file branches)
- //audios, ok := cmd.Params["audios"].([]string)
- //if !ok {
- // return nil, fmt.Errorf("images not provided")
- //}
+ audios, ok := cmd.Params["audios"].([]string)
+ if !ok {
+ return nil, fmt.Errorf("audios not provided")
+ }
+ if len(audios) > 0 {
+ for _, audio := range audios {
+ if isValidURL(audio) {
+ contents = append(contents, map[string]interface{}{
+ "type": "audio_url",
+ "audio_url": map[string]interface{}{
+ "url": audio,
+ },
+ })
+ } else {
+ return nil, fmt.Errorf("invalid audio URL: %s", audio)
+ }
+ }
+ }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@internal/cli/user_command.go` around lines 1617 - 1620, The AUDIO inputs are
currently ignored because the audio handling block in
internal/cli/user_command.go is commented out; restore and implement audio
support by extracting cmd.Params["audios"] into a []string (check ok), validate
entries, and add content parts named "audio_url" or "audio_file" following the
same pattern used for "image", "video", and "file" branches so audio assets are
included in the request payload; alternatively if audio is out-of-scope for this
change, modify the parser to reject AUDIO tokens or return an error when
cmd.Params["audios"] is present so users are not misled.
| case TokenAudio: | ||
| p.nextToken() | ||
| if len(audios) != 0 { | ||
| return nil, fmt.Errorf("video is already set") | ||
| } | ||
| audioLoop: | ||
| for { | ||
| if p.curToken.Type != TokenQuotedString { | ||
| break audioLoop | ||
| } | ||
| var audio string | ||
| audio, err = p.parseQuotedString() | ||
| if err != nil { | ||
| return nil, err | ||
| } | ||
| audios = append(audios, audio) | ||
| p.nextToken() | ||
| } | ||
| case TokenFile: | ||
| p.nextToken() | ||
| if len(files) != 0 { | ||
| return nil, fmt.Errorf("video is already set") | ||
| } | ||
| fileLoop: | ||
| for { | ||
| if p.curToken.Type != TokenQuotedString { | ||
| break fileLoop | ||
| } | ||
| var file string | ||
| file, err = p.parseQuotedString() | ||
| if err != nil { | ||
| return nil, err | ||
| } | ||
| files = append(files, file) | ||
| p.nextToken() | ||
| } |
There was a problem hiding this comment.
Wrong error messages in AUDIO and FILE branches.
Both TokenAudio (line 2502) and TokenFile (line 2520) report "video is already set" on duplicate option detection. This will confuse users who pass duplicate AUDIO or FILE options.
🐛 Proposed fix
case TokenAudio:
p.nextToken()
if len(audios) != 0 {
- return nil, fmt.Errorf("video is already set")
+ return nil, fmt.Errorf("audio is already set")
}
...
case TokenFile:
p.nextToken()
if len(files) != 0 {
- return nil, fmt.Errorf("video is already set")
+ return nil, fmt.Errorf("file is already set")
}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| case TokenAudio: | |
| p.nextToken() | |
| if len(audios) != 0 { | |
| return nil, fmt.Errorf("video is already set") | |
| } | |
| audioLoop: | |
| for { | |
| if p.curToken.Type != TokenQuotedString { | |
| break audioLoop | |
| } | |
| var audio string | |
| audio, err = p.parseQuotedString() | |
| if err != nil { | |
| return nil, err | |
| } | |
| audios = append(audios, audio) | |
| p.nextToken() | |
| } | |
| case TokenFile: | |
| p.nextToken() | |
| if len(files) != 0 { | |
| return nil, fmt.Errorf("video is already set") | |
| } | |
| fileLoop: | |
| for { | |
| if p.curToken.Type != TokenQuotedString { | |
| break fileLoop | |
| } | |
| var file string | |
| file, err = p.parseQuotedString() | |
| if err != nil { | |
| return nil, err | |
| } | |
| files = append(files, file) | |
| p.nextToken() | |
| } | |
| case TokenAudio: | |
| p.nextToken() | |
| if len(audios) != 0 { | |
| return nil, fmt.Errorf("audio is already set") | |
| } | |
| audioLoop: | |
| for { | |
| if p.curToken.Type != TokenQuotedString { | |
| break audioLoop | |
| } | |
| var audio string | |
| audio, err = p.parseQuotedString() | |
| if err != nil { | |
| return nil, err | |
| } | |
| audios = append(audios, audio) | |
| p.nextToken() | |
| } | |
| case TokenFile: | |
| p.nextToken() | |
| if len(files) != 0 { | |
| return nil, fmt.Errorf("file is already set") | |
| } | |
| fileLoop: | |
| for { | |
| if p.curToken.Type != TokenQuotedString { | |
| break fileLoop | |
| } | |
| var file string | |
| file, err = p.parseQuotedString() | |
| if err != nil { | |
| return nil, err | |
| } | |
| files = append(files, file) | |
| p.nextToken() | |
| } |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@internal/cli/user_parser.go` around lines 2499 - 2534, The duplicate-option
checks in the TokenAudio and TokenFile branches incorrectly return "video is
already set"; change the error strings so TokenAudio returns an error like
"audio is already set" and TokenFile returns "file is already set" (update the
fmt.Errorf(...) calls in the TokenAudio and TokenFile branches in the parser
loop where audios/files are checked) so the messages match the option being
duplicated.
| case TokenEffort: | ||
| p.nextToken() // pass Effort | ||
| switch p.curToken.Type { | ||
| case TokenNone: | ||
| effort = "none" | ||
| case TokenMinimal: | ||
| effort = "minimal" | ||
| case TokenLow: | ||
| effort = "low" | ||
| case TokenMedium: | ||
| effort = "medium" | ||
| case TokenHigh: | ||
| effort = "high" | ||
| case TokenMax: | ||
| effort = "max" | ||
| default: | ||
| return nil, fmt.Errorf("invalid effort level") | ||
| } | ||
| p.nextToken() | ||
| break optionsLoop | ||
| case TokenVerbosity: | ||
| p.nextToken() // pass VERBOSITY | ||
| switch p.curToken.Type { | ||
| case TokenLow: | ||
| verbosity = "low" | ||
| case TokenMedium: | ||
| verbosity = "median" | ||
| case TokenHigh: | ||
| verbosity = "high" | ||
| default: | ||
| return nil, fmt.Errorf("invalid verbosity level") | ||
| } | ||
| p.nextToken() | ||
| break optionsLoop |
There was a problem hiding this comment.
break optionsLoop after EFFORT/VERBOSITY prevents composing options.
After parsing either option the loop is unconditionally terminated, so any options that follow are silently ignored. Combinations like EFFORT high VERBOSITY low (or these options preceding MESSAGE/IMAGE/etc.) won't work, and only the first of EFFORT/VERBOSITY provided takes effect. This is asymmetric with parseAddModel, which keeps iterating until the default/semicolon case. Drop the break optionsLoop so parsing continues until ; or an unknown token.
🐛 Proposed fix
case TokenEffort:
p.nextToken() // pass Effort
switch p.curToken.Type {
...
default:
return nil, fmt.Errorf("invalid effort level")
}
p.nextToken()
- break optionsLoop
case TokenVerbosity:
p.nextToken() // pass VERBOSITY
switch p.curToken.Type {
...
default:
return nil, fmt.Errorf("invalid verbosity level")
}
p.nextToken()
- break optionsLoop📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| case TokenEffort: | |
| p.nextToken() // pass Effort | |
| switch p.curToken.Type { | |
| case TokenNone: | |
| effort = "none" | |
| case TokenMinimal: | |
| effort = "minimal" | |
| case TokenLow: | |
| effort = "low" | |
| case TokenMedium: | |
| effort = "medium" | |
| case TokenHigh: | |
| effort = "high" | |
| case TokenMax: | |
| effort = "max" | |
| default: | |
| return nil, fmt.Errorf("invalid effort level") | |
| } | |
| p.nextToken() | |
| break optionsLoop | |
| case TokenVerbosity: | |
| p.nextToken() // pass VERBOSITY | |
| switch p.curToken.Type { | |
| case TokenLow: | |
| verbosity = "low" | |
| case TokenMedium: | |
| verbosity = "median" | |
| case TokenHigh: | |
| verbosity = "high" | |
| default: | |
| return nil, fmt.Errorf("invalid verbosity level") | |
| } | |
| p.nextToken() | |
| break optionsLoop | |
| case TokenEffort: | |
| p.nextToken() // pass Effort | |
| switch p.curToken.Type { | |
| case TokenNone: | |
| effort = "none" | |
| case TokenMinimal: | |
| effort = "minimal" | |
| case TokenLow: | |
| effort = "low" | |
| case TokenMedium: | |
| effort = "medium" | |
| case TokenHigh: | |
| effort = "high" | |
| case TokenMax: | |
| effort = "max" | |
| default: | |
| return nil, fmt.Errorf("invalid effort level") | |
| } | |
| p.nextToken() | |
| case TokenVerbosity: | |
| p.nextToken() // pass VERBOSITY | |
| switch p.curToken.Type { | |
| case TokenLow: | |
| verbosity = "low" | |
| case TokenMedium: | |
| verbosity = "median" | |
| case TokenHigh: | |
| verbosity = "high" | |
| default: | |
| return nil, fmt.Errorf("invalid verbosity level") | |
| } | |
| p.nextToken() |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@internal/cli/user_parser.go` around lines 2535 - 2568, The TokenEffort and
TokenVerbosity case blocks in the parser (see TokenEffort, TokenVerbosity, and
surrounding optionsLoop handling in internal/cli/user_parser.go) prematurely
terminate the optionsLoop by calling "break optionsLoop" after setting
effort/verbosity, which prevents parsing subsequent options; remove the "break
optionsLoop" statements from both the TokenEffort and TokenVerbosity branches so
the loop continues calling p.nextToken() and processes further options until the
normal terminator (semicolon/default) is reached.
| switch p.curToken.Type { | ||
| case TokenLow: | ||
| verbosity = "low" | ||
| case TokenMedium: | ||
| verbosity = "median" | ||
| case TokenHigh: | ||
| verbosity = "high" | ||
| default: | ||
| return nil, fmt.Errorf("invalid verbosity level") | ||
| } |
There was a problem hiding this comment.
verbosity = "median" looks like a typo for "medium".
TokenMedium for EFFORT maps to "medium" (line 2545) but for VERBOSITY it maps to "median". The downstream payload (user_command.go) forwards this string verbatim, so the backend will likely reject "median" as an unknown verbosity level.
🐛 Proposed fix
case TokenMedium:
- verbosity = "median"
+ verbosity = "medium"📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| switch p.curToken.Type { | |
| case TokenLow: | |
| verbosity = "low" | |
| case TokenMedium: | |
| verbosity = "median" | |
| case TokenHigh: | |
| verbosity = "high" | |
| default: | |
| return nil, fmt.Errorf("invalid verbosity level") | |
| } | |
| switch p.curToken.Type { | |
| case TokenLow: | |
| verbosity = "low" | |
| case TokenMedium: | |
| verbosity = "medium" | |
| case TokenHigh: | |
| verbosity = "high" | |
| default: | |
| return nil, fmt.Errorf("invalid verbosity level") | |
| } |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@internal/cli/user_parser.go` around lines 2557 - 2566, In the switch over
p.curToken.Type that sets verbosity (the block using TokenLow, TokenMedium,
TokenHigh), change the TokenMedium case to set verbosity = "medium" (not
"median") so the variable verbosity matches the expected downstream value;
locate the switch in user_parser.go where p.curToken.Type is inspected and
update the TokenMedium branch accordingly.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14573 +/- ##
==========================================
- Coverage 95.59% 94.16% -1.43%
==========================================
Files 10 10
Lines 703 703
Branches 112 112
==========================================
- Hits 672 662 -10
- Misses 21 25 +4
- Partials 10 16 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What problem does this PR solve?
Type of change