Repository navigation
fix(agents): omit message when no supported route exists - #197553
Conversation
Derive message availability from stable source and configured channel facts without turning presentation omission into child or cron policy. Preserve synchronous unknown configuration, modern and offline senders, source-only effect checks, and session tool prefixes. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: ee1170f8-92c3-8c9c-808c-1bca0380450f
|
🦞👀 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: needs maintainer review before merge. What this changesOmit the message tool when no supported session source or configured outbound sender exists. Example: Session agent:main:isolated:matrix has no messaging route or configured sender.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a current tool-discovery defect and resolves all three prior findings; no blocking code defect was found, but current-head CI has an unattributed failure. Priority: P2 Before mergeNone. Findings
Agent review detailsHow this fits togetherAgent preparation combines recorded session capabilities and channel configuration into model-facing tools, while message execution separately enforces current authority and delivery policy. flowchart LR
A[Session metadata] --> C[Message discovery]
B[Configured channel catalog] --> C
C --> D[Tool assembly]
D --> E[Model tool surface]
E --> F[Execution policy]
F --> G[Channel delivery]
Technical reviewBest possible solution: Keep route availability in shared discovery, preserve independent execution gates, and document the corrected staged-installation proof command. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the route-less listing path, and the PR reports paired built-product captures; this read-only review ran no reproduction. Is this the best way to solve the issue? The implementation uses existing session, account-configuration, catalog, and execution owners, with distinct coverage for offline senders, unbound routes, prompt stability, and permission capture. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7477d179db25. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +204, Tests +1692, Docs +34, Other +616. Total +2546 across 37 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel 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 (1 earlier review cycle)
Reviewed November 12, 2026, 2:24 AM ET / 07:24 UTC (Revision 2). |
Keep schema pruning separate from outbound availability, complete supported-route fixtures and generated snapshots, include the wrapper runtime closure, and retain observable synthetic-provider errors. Validated the real unbound sender receipt and latest-stable stored-session compatibility. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Apply the exact reviewed generated snapshot resolutions while preserving the original publication lineage. Source tree equals reviewed integration 5eef5c184ff36339a551c2b48abd7c447cc66bcb; no new functional changes. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: c27bec07-516b-4d4c-b7e8-3ceed38c6836
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Complete the route-aware fixture cutover without changing production discovery or effect policy. Document copying the proof entry into the staged installation. Allocate exactly 14 additional fixture LF; inherited main debt is unchanged. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: d27a6213-d941-4915-be42-054d1f8df771
Declare real supported-source metadata in positive Codex fixtures, retain no-route direct/searchable negatives, and require direct message exposure in the first native provider request. Move coherent Gateway shell cases into their existing sibling and consolidate core stability assertions without dropping coverage. Allocate exactly 68 net fixture/proof LF; inherited main debt is unchanged. Native product execution remains required before publication. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 5da8e96f-3e19-4e03-be69-f243b4f176c3
Preserve the original published history and pinned main. Apply the exact reviewed generated snapshot resolutions and registration-owner transfer from integration 4889a7ce90f0b23664bc312c3993f08198b41174, with an identical full source tree. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: d24c6156-0363-4c53-ac4c-b8e766e36b83
Keep Codex whole-skill reads complete when the shared producer pages model text. Wait for actual duplicate approval admission and applied plugin configuration, and give independent publication fixtures distinct branch names. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: bc8644b5-d9c3-4234-91fc-0a360d439e1c
Integrate pinned main while preserving the original published history. Apply the exact reviewed and native-qualified source tree from 2d54b57a50bc1e8d1eb8be3b70e58ad353634699, including current paged skills and permission-capture cutovers. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: bf7f1df7-f8ff-4bb6-a385-021f0e362897
Preserve published history and pinned main while applying the exact canonical Markdown resolutions from qualified integration 5057b540fce06362cc7a0914a86ba4b5062f1630. All nonmechanical task paths remain unchanged. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 29f5ccea-79e7-477e-a2f3-c0216cf4327e
Use published configuration for discovery and session binding without cold-loading runtime config. Keep invocation configuration live and require normal preparation before effects. Preserve late-bound Codex source routes. Give the Telegram room delivery fixture a supported outbound adapter and keep both cold SDK constructor contracts covered without weakening checks. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 7c6d1d89-5e3e-4b2d-8641-6b842166e4e9
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…7553) * fix(agents): omit message when no supported route exists Derive message availability from stable source and configured channel facts without turning presentation omission into child or cron policy. Preserve synchronous unknown configuration, modern and offline senders, source-only effect checks, and session tool prefixes. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> * fix(agents): omit message when no supported route exists Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: ee1170f8-92c3-8c9c-808c-1bca0380450f * fix(agents): preserve configured senders outside route bindings Keep schema pruning separate from outbound availability, complete supported-route fixtures and generated snapshots, include the wrapper runtime closure, and retain observable synthetic-provider errors. Validated the real unbound sender receipt and latest-stable stored-session compatibility. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> * Publish openclaw/swift-krill Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: c27bec07-516b-4d4c-b7e8-3ceed38c6836 * test(agents): declare source prompt support in execution fixture Complete the route-aware fixture cutover without changing production discovery or effect policy. Document copying the proof entry into the staged installation. Allocate exactly 14 additional fixture LF; inherited main debt is unchanged. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> * Publish openclaw/swift-krill Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: d27a6213-d941-4915-be42-054d1f8df771 * test(codex): preserve route-aware tool contracts Declare real supported-source metadata in positive Codex fixtures, retain no-route direct/searchable negatives, and require direct message exposure in the first native provider request. Move coherent Gateway shell cases into their existing sibling and consolidate core stability assertions without dropping coverage. Allocate exactly 68 net fixture/proof LF; inherited main debt is unchanged. Native product execution remains required before publication. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> * Publish openclaw/swift-krill Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 5da8e96f-3e19-4e03-be69-f243b4f176c3 * Publish openclaw/swift-krill Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: d24c6156-0363-4c53-ac4c-b8e766e36b83 * fix(codex): reject partial skills and stabilize CI fixtures Keep Codex whole-skill reads complete when the shared producer pages model text. Wait for actual duplicate approval admission and applied plugin configuration, and give independent publication fixtures distinct branch names. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> * Publish openclaw/swift-krill Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: bc8644b5-d9c3-4234-91fc-0a360d439e1c * Publish openclaw/swift-krill Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: bf7f1df7-f8ff-4bb6-a385-021f0e362897 * Publish openclaw/swift-krill Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 29f5ccea-79e7-477e-a2f3-c0216cf4327e * fix(agents): preserve cold message tool construction Use published configuration for discovery and session binding without cold-loading runtime config. Keep invocation configuration live and require normal preparation before effects. Preserve late-bound Codex source routes. Give the Telegram room delivery fixture a supported outbound adapter and keep both cold SDK constructor contracts covered without weakening checks. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> * Publish openclaw/swift-krill Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 7c6d1d89-5e3e-4b2d-8641-6b842166e4e9 --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Related: #169091
What Problem This Solves
Agents are offered the message tool even when their session has no supported reply route and no configured outbound sender. That advertises an action they cannot use.
User Impact
Route-less agents stop receiving an unusable messaging tool. Supported source replies and prompt reactions, configured offline/outbound-only channels, and unbound configured senders remain available. Existing target/action restrictions still apply at execution. Discovery omission does not deny a later child or automation that has a route.
No new public configuration, permission rule, or database schema is introduced. Existing WebChat sessions record prompt support on their next operator declaration. Cold SDK constructors remain usable before configuration preparation; invocation still requires canonical preparation and authority.
Why This Change Was Made
Discovery consumes existing session-metadata and channel-configuration owners, not transport health or default schema actions. Existing policy and schema gates enforce permission ceilings before route-only presentation filtering, including coding, Gateway/CLI MCP, and skill dispatch. Omitted-config discovery and session binding use only the published runtime snapshot without cold-loading configuration or freezing invocation-time settings.
Evidence
Published head: 3db3474; tree ebfb7fb0bf9c47c2ab16bdcb0c9c0241bf56d73c exactly matches qualified source 3e38b66b9e369267fc02217265ae9b5c404d47d5. Original published ancestry and integrated main 3460f61 are retained.
Review: fresh independent P0–P3 clean review and structured scoped-clean/exit-0 autoreview cover the four-file repair, tree ebfb7fb0 relative to source 5057b540. Earlier functional/integration reviews remain scoped to their unchanged inputs, not a fresh full-PR autoreview claim. The completed earlier hosted review covers an earlier revision; no duplicate request.
Current CI and inherited-failure qualification
CI 44232922509, attempt 1 on exact head 3db3474, is terminal and failed: 118 jobs—90 successful, 25 skipped, 3 failed. Those failures are two E2E leaf shards and their aggregate gate. Build artifacts 44232922259 passed. The repaired Message shards, previously cancelled UI E2E shard, security-fast, and Security Review passed. All 175 check-runs are terminal; the separate legacy ci-gate status remains pending. CI is not relabeled green.
Actual tested checkout 8e4af7f, tree 3c35d96bee86bcd1c7abd675cf130d002608461b, has ordered parents main 14b9fc3 and this PR head. Its retained Git tree independently matches merge-tree reconstruction.
Independent execution on that exact CI main parent 14b9, tree 6a95d9c1d650f004ef6aac7afef19ae1fc12c516, reproduced every remaining failed E2E boundary. Private frozen install, fresh normal E2E build, official Node 24.22.1, pinned Bun 1.4.4, and the same maintained six-file selector/order/default profiles: one 526-second run, 120 other cases passed, three E2E cases failed plus Discord teardown. Relevant test/owner/harness blobs equal the actual CI merge. This is actual baseline execution, not attribution from unchanged blobs alone or a claim of CI-runner/Node26 equivalence.
These E2Es remain unpatched and their assertions unchanged. Standing scoped landing authorization selects the documented native pre-existing-failure CI-only exception, subject to its live writer, exact-head, review, security, policy, and retained-outcome checks. This is not a waiver of those checks or a claim that a merge has occurred.
Prior a514 CI 44224297723 was 118 jobs: 86 success, 25 skipped, one cancelled, six failed. The PR-caused cold-config construction, five missing-message Codex cases, and unsupported Telegram fixture were repaired and their current shards pass. Its UI cancellation during apt installation remains historically unclassified; the fresh UI shard passed. Earlier baseline 3460 execution is retained separately and not mislabeled as the 14b9 run.
Historical qualification and limits
Canonical regeneration resolved actual main snapshot conflicts. Upstream intentionally paged Codex skills and stronger approval/lifecycle fixes remain without obsolete restrictions or duplicate coverage. Publication fixture clones retain distinct deterministic slugs. An earlier autoreview P2 claiming a lost registration fallback was declined after verifying old resolvedConfig was exactly options?.config; this is not called machine-clean review.
The strict paired built-product workload passed 19 rows on historical BASE 3b13df5 versus FIX 5eef5c184ff36339a551c2b48abd7c447cc66bcb: no route 34,991 → 30,556 raw UTF-8 bytes; internal WebChat 37,364 unchanged; external delivery + WebChat 35,518 unchanged; configured outbound/no inbound 34,184 → 33,243. These are historical matched measurements, not current-head token/billing/timing/cache results. Supported prefixes and source-only target/action denials remained stable; synthetic outbound receipts were verified. Run scripts/perf/message-tool-availability.mjs inside each staged installation so discovery cannot borrow the source root; incorrectly rooted captures were rejected.
Released-state proof from 2026.11.3/847611d migrated isolated core state 27 → 41 and retained history/receipts, external delivery, inline widgets, and declared reactions through CLI/public-SDK reentry. Doctor's fixture-plugin warning limits this to targeted core-state compatibility, not complete plugin/service/live-Gateway upgrade certification or a fresh upgrade test of this head.
Old 0f CI/Deep Research/updater attribution gaps, unavailable runner-local npm diagnostics, and the earlier unproven local requesting-browser-registration failure remain historical gaps. Later passing cohorts/packaging do not establish their causes. No rerun-for-green, real external sends, live Gateway restart, or deployment.
Contributor credit
Co-authored with @vincentkoc, @jalehman, and @GrahamMcBain.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by