Repository navigation
fix(channels): honor pinned accounts in Mattermost model menus - #144880
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 7:28 AM ET / 11:28 UTC. ClawSweeper reviewWhat this changesMattermost model menus read the current session’s pinned account and runtime, while Discord, Slack, and Telegram preserve explicitly empty thinking-menu catalogs. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix absent from current main. No blocking defect was found, and the broader related draft does not supersede it. Priority: P2 Review scores
Verification
How this fits togetherChannel command handlers combine conversation state with OpenClaw’s shared model catalog to build interactive menus. Mattermost now supplies the same session context that the shared eligibility owner already understands. flowchart TD
A[Mattermost slash command or picker click] --> B[Existing authorization and conversation routing]
B --> C[Read current conversation session]
C --> D[Shared model eligibility builder]
E[Published catalog and account eligibility] --> D
D --> F[Render model menu]
F --> G[Existing model selection dispatch]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +14, Tests +32. Total +46 across 7 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep model eligibility with the shared catalog owner and consistently supply the target conversation’s current session state. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the path: pin an invalid expired-token account while a healthy shared account exposes learned models, then open a Mattermost slash or thread menu. Main omits the session input required to filter those choices; this review did not execute the scenario. Is this the best way to solve the issue? Yes. Supplying current session context to the existing eligibility builder is a narrow repair, and preserving empty catalogs follows the existing command-menu contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 520bf609efac. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Landed after clean exact-head review and green CI. Proof: Compiled baseline and candidate Gateways registered real Mattermost slash and interaction routes against an external HTTP/WebSocket fixture. Actual posts created the parent and thread sessions; default authorization and signed callbacks remained active.
The parent stayed pinned to the healthy account. The same thread reply and session survived all four steps. Captured outbound writes and stored post records agree; all callbacks returned HTTP 200. Telegram Test Server The first local review rejected the earlier route-injected harness. The later review inspected the full registered-Gateway records and resolved that finding. No product source changed during this proof correction. |
Preserve the reviewed harness while incorporating the landed benchmark prerequisite. Punchcard-Session: coral-orchard-orchard-d4 * commit '4407ed19ac63b1c1c84a0cfe6eb4bbeca9c2322c': (1196 commits) fix(perf): isolate benchmark subprocess transport (#144159) refactor(auth): await Copilot cache persistence (#144810) refactor(web-fetch): exercise URL normalization through the public tool (#144887) fix(ollama): preserve hosted subdomain model context (#144891) fix(doctor): explain Codex plugin health failures (#144813) fix(channels): honor pinned accounts in Mattermost model menus (#144880) fix(update): failed-update records hide the triggering error behind the excerpt tail (#144729) fix(logging): preserve OpenClaw package references in diagnostics (#144808) fix: retain plugin detail tab selections while inspection loads (#144647) fix: keep discovered models when sign-in tokens renew (#144861) fix(update): preserve local package overrides (#89985) fix(update): resolve compatibility bridges within the runtime graph (#144831) chore(i18n): refresh native locales (#144856) fix: preserve child signal termination during CLI respawn (#144838) fix(text): hide encoded MiniMax tool envelopes (#126307) fix(subagents): deliver child replies that match the empty placeholder (#130647) fix(cli): reject blank message channel selectors (#144802) fix(telegram): preserve mixed text order and pending stop (#144839) fix(memory): restore FTS fallback for same-name view collisions (#144783) chore(release): close out 2026.9.4 on main (#144708) ...
…law#144880) Mattermost menus now use the latest session account/runtime context, including thread sessions. Native thinking-menu callers preserve explicit empty catalogs. Validated with registered Gateway baseline/candidate flows, Telegram Test Server controls, focused channel checks, and green CI. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Channel model menus could show learned choices from a shared account after the session pinned a different, expired account. Slash and thread-picker requests omitted session context.
Why This Change Was Made
Both affected channel entry points read the latest session and pass it to the shared menu builder; thread interactions use the thread session. Other thinking-menu callers now preserve an explicitly empty catalog.
User Impact
Model choices honor the session account pin. Existing native thinking controls remain available. No configuration or protocol change is required.
Evidence
A real Gateway with a controlled channel transport exercised registered slash and thread callbacks. Healthy → expired → healthy → expired pins correctly removed and restored account-only choices after the fix; the baseline retained them. No inference was sent. Telegram Test Server /think retained all seven buttons with an empty provider list. Focused channel suites passed 13, 21, and 71 cases.
Related: #136257.