Skip to content

fix: name --agent-command in the serve log, re-record the demo GIF - #97

Merged
kanywst merged 2 commits into
mainfrom
fix/serve-label-and-demo
Nov 14, 2026
Merged

kanywst merged 2 commits into
mainfrom
fix/serve-label-and-demo

Conversation

@kanywst

@kanywst kanywst commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner
  • 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.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Merge Risk: Minimal · up to 4d749

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

@claude

claude Bot commented Nov 14, 2026

Copy link
Copy Markdown

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.

@kanywst
kanywst merged commit b5bbd79 into main Nov 14, 2026
11 checks passed
@kanywst
kanywst deleted the fix/serve-label-and-demo branch November 14, 2026 22:33
@kanywst kanywst mentioned this pull request Nov 23, 2026
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