You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: name --agent-command in the serve log, re-record the demo GIF - #97
serve printed backend=acp:claude even with --agent-command, because the label used the --agent default. It now prints the command's binary (backend=acp:python). Two CLI tests cover the preset and the custom-command cases.
assets/demo.gif still showed the old a2claude name and a reply line without --request. Re-recorded from the unchanged assets/demo.tape.
uv run pytest: 225 passed. ruff check and ruff format --check clean.
Summary by CodeRabbit
Improvements
Startup messages now show the selected backend or, for ACP, the executable from a custom launch command. When no custom command is set, they show the selected agent.
No actionable comments were generated in the recent review.
Walkthrough
The serve startup label now identifies the ACP command executable when --agent-command is set. Otherwise, it identifies the selected agent. Tests cover both label cases.
Changes: Serve Startup Label
Layer / File(s)
Summary
Set and verify the startup label src/a2acode/cli.py, tests/test_cli.py
The startup label uses the executable from an explicit ACP command, or the selected agent when no command is set. Tests check both cases.
This corrects the label shown at serve startup when a custom agent command is used. It has no functional effect on request handling, and tests cover both label cases, so merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main code change: the serve log now shows the binary name from --agent-command. It also names the demo GIF re-recording, which is a secondary asset change. The title follows the co…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main code change: the serve log now shows the binary name from --agent-command. It also names the demo GIF re-recording, which is a secondary asset change. The title follows the conventional 'fix:' prefix and is specific enough for a reader scanning history. The 66-character length is slightly long but acceptable.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 300e4780-bba8-41f5-9bd6-5cccefbaa7a7
Commits
Reviewing files that changed from the base of the PR and between 488b042 and 4d749cc.
Files ignored due to path filters: 1
assets/demo.gif is excluded by !**/*.gif
Files selected for processing: 2
src/a2acode/cli.py
tests/test_cli.py
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
Clean against all five areas. The diff only changes the local startup log label in cli.py:215-220 and adds tests, plus the demo GIF re-record. It doesn't touch the permission flow, wire content, or cancellation. shlex.split(agent_command)[0] can't raise here because cli.py:159-163 already rejects malformed and empty values. The label goes to local stdout only and isn't part of the agent card.
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
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.
serveprintedbackend=acp:claudeeven with--agent-command, because the label used the--agentdefault. It now prints the command's binary (backend=acp:python). Two CLI tests cover the preset and the custom-command cases.assets/demo.gifstill showed the olda2claudename and a reply line without--request. Re-recorded from the unchangedassets/demo.tape.uv run pytest: 225 passed.ruff checkandruff format --checkclean.Summary by CodeRabbit