Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…p key (cherry picked from commit c75cf9ddf4daadb7e7e5d183309ba22711c09787)
|
Codex review: needs maintainer review before merge. What this changesThis PR includes the dispatched runtime in label-attempt identity so failed utility fallbacks cannot suppress recovery through a different runtime. Example: A utility fallback targets openai/gpt-main directly, while regular recovery uses the same model through the session's codex runtime.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review This PR fixes a current label-recovery bug with a focused implementation and sufficient Gateway proof; no actionable findings remain, and current-head CI is pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway session-title generation and channel label callers pass model, profile, and runtime selections to the shared label generator, which returns bounded text through utility completion and isolated runtime dispatch. flowchart TD
A[Session or channel title request] --> B[Conversation label generator]
B --> C[Resolve selection and runtime]
C --> D[Runtime aware attempt identity]
D --> E[Utility completion fallback chain]
E --> F[Isolated runtime dispatch]
F --> G[Generated conversation label]
Technical reviewBest possible solution: Keep runtime-aware deduplication in the existing label-attempt owner while preserving same-route suppression and runtime-owned authorization. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the suppression path, and the supplied Gateway comparison reproduces it on the pinned base; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch repairs the attempt-identity invariant directly, reuses existing selection and dispatch owners, and preserves same-route deduplication without new retry machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4d4801bc7ca3. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +16, Tests +38. Total +54 across 3 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed October 22, 2026, 9:38 AM ET / 13:38 UTC (Revision 4). |
912ab51 to
8d439f1
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8d439f1f78
ℹ️ 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".
Real-behavior proof: shipped Gateway title recovery with the session runtime overrideAddressed ClawSweeper item "Add real behavior proof" on exact HEAD Entry point (shipped): Scenario (isolated, non-production Gateway):
Observed (sanitized; IPs/keys/phone numbers/endpoints removed, timestamps reduced): Result: the session is titled Reading: the utility fallback runs the overlapping regular model without the session runtime override and fails on the direct route ( Unit-level fail-before/pass-after for the same overlap scenario: |
|
@clawsweeper re-review Real-behavior proof added above for the shipped Gateway title-recovery path on exact HEAD |
|
🦞👀 Re-review progress:
|
CI attribution (ClawSweeper item 2) — current evidence vs historicalCurrent evidence, exact HEAD Historical failures (ClawSweeper reviewed head
Conclusion: the historical failures are (a) max-lines warnings in untouched files under a non-comparable scope, and (b) stale/over-budget ratchet baselines with the comparison base ref unreachable. Neither is attributable to this PR's three changed files ( |
|
@steipete, could you review this follow-up to #173906? It fixes the session-runtime recovery path identified in the inline review. Current head |
|
October 18 readiness reconciliation, unchanged head @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Landed in 80ae18c. Thanks @dankarization. Session titles now finish when the utility model falls back to a native-runtime model. |
…p key (openclaw#174164) fix(sessions): finish automatic session titles through the session's native runtime When the utility model used for session titles failed and the fallback was a regular model served through the session's native runtime (for example Codex), the title request went straight to that model instead of through its runtime, failed too, and the session kept its provisional title. Title generation now recovers through the native runtime, so the session gets a real title. Evidence: built Gateway with local OpenAI-compatible fixtures, the same utility-fallback and regular model overlap as the report. On main the title stayed provisional (twice); with this change a title is generated (twice), and the wire log shows the failed direct request followed by a successful Codex recovery. A plain native-runtime session works as before, and a live gpt-5.4-mini run titled a session "Plan raised beds.". Production +16 (two helper layers removed). Requested in Discord. Thanks @dankarization. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Automatic session titles can remain provisional even when the session's regular model works through its native runtime. Since #173906, the utility chain records candidates before completion. A failed utility fallback can therefore claim the same provider/model as regular recovery, even though it ran without the session's runtime override.
What Changed
Include the dispatched runtime override in label-attempt identity. Resolve each planned selection and runtime together, so a failed direct fallback does not suppress native-runtime recovery. Calls that already used the same route remain deduplicated.
The original contributor commits are preserved. Original fix by @dankarization.
The simplification removes two helper layers and keeps one attempt-resolution owner instead of separate runtime, key, and plan helpers. Against the merge base: production +51/-35 (net +16), tests +38/-0. The remaining growth carries runtime identity; there are no plugin-SDK surface changes.
Evidence
Built main
d5ce64b7e2d2896425879d4bc6891d8b93fd7520and candidate9cef2c817d3589c24c3b748709f13b54e79892cconce each in isolated Docker with Node 24.22.1. Configuration and session state were created with shipped CLI commands and Gateway RPCs.A local OpenAI-compatible provider preserved the exact provider/model overlap between the utility fallback and regular recovery. Sessions persisted a Codex runtime override. On main, two independent sessions kept provisional names after the utility fallback failed. A control using that same regular provider/model through Codex returned
Garden planning recovery. On the candidate, both overlapping-fallback sessions and the control receivedGarden planning recovery; provider request logs show the failed direct regular-model request followed by successful native regular-model recovery.The added regression fails on main for the suppressed recovery and passes on the candidate. All 40 tests across the label generator and utility-completion suites pass. The build, focused formatting check, and focused lint pass.
On the same candidate, the real OpenAI
gpt-5.4-miniautomatic-title path returnedPlan raised bedsthrough a newly created Gateway session.Compatibility and Risk
No configuration, schema, or published API changes. Existing successful utility labels and same-route deduplication are preserved.
Merge danger: two-way door, reversible with an ordinary code revert. Blast radius is automatic conversation/session labeling when a utility fallback overlaps regular-model recovery across different runtimes.