Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
coderai
Commits
aac83493
Commit
aac83493
authored
May 06, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: harden multimodal client entry flow
parent
8fe20489
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
test_manual_multimodal_test_client.py
tests/test_manual_multimodal_test_client.py
+17
-3
manual_multimodal_test_client.py
tools/manual_multimodal_test_client.py
+2
-1
No files found.
tests/test_manual_multimodal_test_client.py
View file @
aac83493
...
...
@@ -564,7 +564,7 @@ def test_main_runs_selected_mode_and_prints_text(monkeypatch, capsys, tmp_path):
captured
=
capsys
.
readouterr
()
assert
exit_code
==
0
assert
"done"
in
captured
.
out
assert
captured
.
out
==
"done
\n
"
def
test_main_prints_artifact_path_when_present
(
monkeypatch
,
capsys
,
tmp_path
):
...
...
@@ -581,5 +581,19 @@ def test_main_prints_artifact_path_when_present(monkeypatch, capsys, tmp_path):
captured
=
capsys
.
readouterr
()
assert
exit_code
==
0
assert
"summary"
in
captured
.
out
assert
str
(
artifact
)
in
captured
.
out
assert
captured
.
out
==
f
"summary
\n
{artifact}
\n
"
def
test_main_returns_error_when_interactive_mode_selection_fails
(
monkeypatch
,
capsys
,
tmp_path
):
monkeypatch
.
setattr
(
"tools.manual_multimodal_test_client.choose_mode_interactively"
,
lambda
:
(
_
for
_
in
())
.
throw
(
ValueError
(
"Invalid mode selection: 99"
)),
)
from
tools.manual_multimodal_test_client
import
main
exit_code
=
main
([
"--output-dir"
,
str
(
tmp_path
)])
captured
=
capsys
.
readouterr
()
assert
exit_code
==
1
assert
captured
.
out
==
"ERROR [interactive]: Invalid mode selection: 99
\n
"
tools/manual_multimodal_test_client.py
View file @
aac83493
...
...
@@ -286,10 +286,11 @@ def execute_mode(args: argparse.Namespace, selected_mode: str) -> dict:
def
main
(
argv
:
list
[
str
]
|
None
=
None
)
->
int
:
args
=
parse_args
(
argv
)
selected_mode
=
args
.
mode
or
choose_mode_interactively
()
try
:
selected_mode
=
args
.
mode
or
choose_mode_interactively
()
result
=
execute_mode
(
args
,
selected_mode
)
except
Exception
as
exc
:
selected_mode
=
args
.
mode
or
"interactive"
print
(
f
"ERROR [{selected_mode}]: {exc}"
)
return
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment