Repository navigation
Conversation
Greptile SummaryThis PR adds
Confidence Score: 5/5Safe to merge — the change is a small, well-scoped additive feature with no breaking changes and correct fallback logic. No P0 or P1 issues found. The new params are optional and backward-compatible, the label construction logic handles all edge cases correctly, and the call site already has the required variables in scope. No files require special attention.
|
| Filename | Overview |
|---|---|
| src/auto-reply/reply/agent-runner-usage-line.ts | Adds optional providerUsed/modelUsed params and constructs a model label suffix; logic is correct for all partial-data cases and is backward-compatible. |
| src/auto-reply/reply/agent-runner.ts | Passes already-defined providerUsed and modelUsed into formatResponseUsageLine; no behavioral risk at the call site. |
Reviews (1): Last reviewed commit: "feat: include model in response usage fo..." | Re-trigger Greptile
There was a problem hiding this comment.
Pull request overview
Adds the actual provider/model that produced the reply to the response usage footer, so usage output is more informative while keeping existing cost/session behavior unchanged.
Changes:
- Pass
providerUsedandmodelUsedintoformatResponseUsageLinefrom the reply agent runner. - Extend
formatResponseUsageLineto append amodel …segment (and keepest $…formatting as-is).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/auto-reply/reply/agent-runner.ts | Passes the resolved runtime providerUsed/modelUsed into the usage line formatter. |
| src/auto-reply/reply/agent-runner-usage-line.ts | Builds a model label and appends it to the Usage: footer alongside the existing optional cost suffix. |
| const modelLabel = | ||
| params.providerUsed && params.modelUsed | ||
| ? `${params.providerUsed}/${params.modelUsed}` | ||
| : (params.modelUsed ?? params.providerUsed ?? ""); | ||
| const suffix = `${costLabel ? ` · est ${costLabel}` : ""}${modelLabel ? ` · model ${modelLabel}` : ""}`; |
There was a problem hiding this comment.
The new modelLabel formatting duplicates logic that already exists in formatProviderModelRef (and is less robust): it doesn’t trim values and can double-prefix if modelUsed already contains provider/…. Consider reusing formatProviderModelRef(params.providerUsed ?? "", params.modelUsed ?? "") (or similar) so display formatting stays consistent across the codebase (e.g., fallback/status output) and avoids provider/provider/model edge cases.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1dc161c982
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| params.providerUsed && params.modelUsed | ||
| ? `${params.providerUsed}/${params.modelUsed}` |
There was a problem hiding this comment.
Normalize model label before prefixing provider
When both providerUsed and modelUsed are present, this unconditionally formats provider/model, which produces incorrect labels for providers whose model IDs are already provider-qualified (for example OpenRouter native IDs like openrouter/aurora-alpha). In those runs the footer becomes openrouter/openrouter/..., so the reported model is wrong and can mislead users copying the value for follow-up commands or debugging.
Useful? React with 👍 / 👎.
1dc161c to
26be029
Compare
f247ce1 to
e592b92
Compare
|
Thanks for the context here. I did a careful shell check against current Close: the older branch is no longer a useful landing candidate because current main already covers the central model-in-footer value through the built-in So I’m closing this older PR as already covered on Review detailsBest possible solution: Keep the current Do we have a high-confidence way to reproduce the issue? Not applicable as a bug repro; this is a feature PR. Current-main source, tests, and docs show the model-rich Is this the best way to solve the issue? No. The older direct formatter suffix is no longer the best solution because current main moved rich footer display into the usage-bar/template contract and keeps the compact Security review: Security review cleared: The stale PR diff only changes TypeScript footer formatting/call arguments and adds no dependency, workflow, secret, package, or executable-code surface. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 1c86769cb817; fix evidence: commit 799488086414, main fix timestamp 2026-06-13T13:46:02Z. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
providerUsedandmodelUsedintoformatResponseUsageLineExample
Before:
After:
With cost enabled:
Why
The runner already knows the actual model/provider that produced the reply at the point where the usage footer is assembled, so surfacing it there is low-risk and more informative than showing tokens alone.
This also avoids relying on router/planner intent: the footer reports the model that actually answered.
Validation
formatResponseUsageLine