Skip to content

feat(mattermost): answer an ask_user question from the option it offers - #135350

Merged
Patrick-Erichsen merged 18 commits into
openclaw:mainfrom
edenfunf:fix/mattermost-question-actions
Sep 11, 2026
Merged

Patrick-Erichsen merged 18 commits into
openclaw:mainfrom
edenfunf:fix/mattermost-question-actions

Conversation

@edenfunf

@edenfunf edenfunf commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

An ask_user question on Mattermost arrives as plain text. The options are listed in the prompt, the prompt tells the reader to tap one, and there is nothing to tap — the only way to answer is to type. Telegram and Discord render the same question as native buttons.

Why This Change Was Made

resolveMattermostPresentation returns [] for every button carrying a typed action, keeping only the deprecated value shape (extensions/mattermost/src/normalize.ts, 2358cffb439). That guard is right and stays: it comes from #88721, whose contract is that a channel maps "only ... actions they can preserve". Mattermost's click handler synthesizes [Button click: user @<user> selected "<label>"] and sends it to the agent (mattermost/monitor-interactions.ts), so a command or callback button would do something other than what its action says. Prose is correct for those.

question actions are the exception this PR adds, and both halves of the round-trip are already public SDK surface that Discord and Slack use:

  • Render. resolveAskUserQuestionOptionIndices supplies the Gateway-owned option index, so presentation order is never authoritative (src/plugin-sdk/reply-payload.ts:26). Mattermost already HMAC-signs an arbitrary context onto every button and verifies it on return (mattermost/interactions.ts) — no new transport, no new trust.
  • Click. The handler submits via questionGatewayRuntime.resolveOption, the same call Discord makes (extensions/discord/src/monitor/questions.ts). Returning a response consumes the click, so the answer never also arrives as prose while the question stays open.
  • Revalidation. resolveQuestionOverGateway awaits question.get before question.resolve (src/infra/question-gateway-resolver.ts), leaving that read window unguarded if the decision is taken only at handler entry. The optional authorize hook is called after the read and immediately before the write. It lives in the shared resolver so Discord, Slack and Telegram can adopt it with predicates they already have. denied is reachable only through an overload requiring authorize, so a plugin that never opts in keeps the exact result union it exhausts today and no external switch can break.

Authorization layers as the model-picker handler already does: the transport's authorizeButtonClick gates arrival, then the question handler takes its own current-policy decision (authorizeMattermostCommandInvocation) immediately before the Gateway write, so the privileged effect never leans on an earlier check. A denied click gets an ephemeral notice and no Gateway I/O. The prompt retires only on an accepted answer; denials, already-answered questions and resolver failures return ephemeral-only feedback, so nobody is named as selecting an option that was never accepted.

Deliberately out of scope: approval actions (same shape, but Mattermost declares no approvalFlags: ["native"], so routing is a separate decision); "Other…" (carries intent: "custom-input" and no option value, so the Gateway has no index — it stays in prose, which already invites a typed answer); and questions the Gateway does not index (multi-select, secret, or outside the 2–4 single-select range), which render exactly as today, the same limit Telegram and Discord have.

User Impact

  • Tapping an option on an ask_user prompt answers the question on Mattermost, and the post is replaced with ✓ **<option>** selected by @<user> the same way other button clicks are — but only once the Gateway accepts the answer.
  • The prompt stays answerable by typing; nothing about the prose changes.
  • A click that the Gateway rejects, or that arrives after the question was answered, tells the clicker so ("This question was already answered." / "Could not submit this answer.") and leaves the prompt exactly as it was, instead of failing quietly or faking a selection.
  • A click the transport refuses now leaves the post untouched instead of echoing it back as an
    update. Mattermost re-issues an attachment's action ids on every update, so the old
    behavior meant one outsider's refused click retired every button on the post for everyone
    — harmless while the only buttons were the model picker's, and not harmless once a live
    question hangs off them.
  • Replies without an ask_user question are untouched: with no Gateway option list the encoder produces nothing and the existing paths run unchanged.
  • docs/tools/ask-user.md and docs/plugins/message-presentation.md now list Mattermost
    among the channels with native question buttons, and say where it differs: it retires its
    prompt on the click it accepts, so a question that ends elsewhere keeps its buttons until
    someone clicks one.

Evidence

Behavior addressed: an ask_user prompt on Mattermost carries no option buttons, and there is no path from a click to the question Gateway. Also covered, because the first review flagged them: an unaccepted click must not retire the prompt or name a selector, and the Gateway write must sit behind a current authorization decision.

Real environment tested: a real Mattermost server (mattermost/mattermost-preview in Docker), a real Gateway running this branch's build with an isolated state dir, and real member accounts clicking through Mattermost's own post-action API - so every integration callback the Gateway receives is built, signed-context included, and delivered by the Mattermost server itself. The model is a local stand-in whose only role is to return one ask_user tool call and then repeat the tool result; the question store and resolver are the real Gateway. Channel policy: groupPolicy: "allowlist" with only ada in groupAllowFrom; mallory is a channel member who is not allowlisted. Node v24.18.0 on Windows 11, Docker 28.0.4.

Exact steps: ada posts a request; the agent's ask_user produces a question post; clicks are performed with each member's own session via POST /api/v4/posts/{post_id}/actions/{action_id}.

Scenario A - an allowlisted click answers the question:

ada says 'deploy please' -> HTTP 201
question post tagimo3tpfn6u8h4m76mcp5era buttons: [('question0', 'staging'), ('question1', 'production')]
click by ada: action=question1 -> HTTP 200
post now: attachments=['✓ **production** selected by @ada']
agent final: 'Understood - the deploy target you picked is: Deploy: production
  { "status": "answered", "answers": { "answers": { "environment": ["production"] } } }'

Scenario B - a click current policy denies never reaches the Gateway, and its option is never recorded. mallory clicks a different option than ada will type, so the recorded answer attributes unambiguously:

ada says 'deploy again' -> HTTP 201
question post m7pk7g9fgtdc8d54n116ucmmbo buttons: [('question0', 'staging'), ('question1', 'production')]
click by mallory (not allowlisted): action=question1 (production) -> HTTP 200
buttons still present after mallory's click: True
ada (typed answer) says 'staging' -> HTTP 201
agent final: '... { "answers": { "environment": ["staging"] } }'
answer is ada's typed choice, not mallory's click: True

Scenario C - a click on an already-answered question keeps the prompt and fakes nothing (the question was answered by typing first, so the post still carries live buttons):

question post esksha5bcfnajp3ohzt3txrsqe buttons: [('question0', 'staging'), ('question1', 'production')]
ada types 'production' -> question resolves; agent final names "production"
ada clicks staging on the ANSWERED question -> HTTP 200
buttons still present: True
no false 'selected by' line: True

Gateway log for the three callbacks (each is the Mattermost server calling in):

[mattermost] interaction: action=question1 user=ada     post=tagimo3tpfn6u8h4m76mcp5era ...
[ws] ⇄ res ✓ question.waitAnswer 556ms ...
[mattermost] interaction: action=question1 user=mallory post=m7pk7g9fgtdc8d54n116ucmmbo ...
[mattermost] interaction: action=question0 user=ada     post=esksha5bcfnajp3ohzt3txrsqe ...

The earlier live revision exposed a transport-denial problem: authorizeButtonClick responded with an update that restored the post, causing Mattermost to re-register its actions under new IDs. Replaying an old action ID then returned the server's own 404 Invalid action id before any callback. The final diff fixes this: transport authorization denial and question-handler denial both return ephemeral-only responses and leave the prompt/actions unchanged.

Red/green at the unit level, one half at a time. With only normalize.ts reverted to origin/main, the five encoding cases fail (expected [] to have a length of 1, parseMattermostQuestionContext is not a function) and the twenty pre-existing normalize cases stay green. With only monitor-interactions.ts reverted, the seven question cases — all of them driving the composed handleInteraction captured from registerMattermostInteractions, so behavior and wiring are pinned together — fail and nothing else does. They pin the review repairs directly: update is asserted absent for the denied, already-answered and resolver-failure outcomes, and authorizeMattermostCommandInvocation is asserted to run before any resolveOption call.

Mechanical checks:

$ pnpm exec vitest run --config test/vitest/vitest.extension-mattermost.config.ts
Test Files  56 passed, 1 failed (the host artifact below)
     Tests  856 passed, 1 failed

$ node scripts/run-tsgo.mjs -p tsconfig.extensions.json --noEmit            # clean
$ node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.extensions.test.json --noEmit  # clean
$ pnpm lint:extensions                                                      # clean
$ pnpm check:assertion-safety --base origin/main                            # OK
$ pnpm check:max-lines-ratchet --base origin/main                           # OK

(extensions/mattermost/src/mattermost/model-picker.test.ts fails one case on this Windows host with EPERM ... syscall: 'rm' while removing its temp directory in teardown; it fails identically on an unrelated worktree that never touched Mattermost, so it is a host artifact rather than this change.)

The window between the resolver's own read and its write is closed and proven live, not just in unit tests. Against the same rig - real Mattermost, real Gateway, a real question created by a real agent turn - a probe calls the real resolveQuestionOverGateway and refuses from the authorize hook, which only answers after it has watched the resolver's own question.get land. The observable is the Gateway's own record, read back through question.get, not the resolver's return value:

before: gateway reports status=pending
inside window: gateway reports status=pending
after denial: gateway reports status=pending

denied path: resolver returned denied; question still pending
hook ran after the read (question.get observed)
after allowed: gateway reports status=answered

allowed path: resolver returned answered; question now answered
PROOF OK

The control half matters: the same call with access intact does reach question.resolve and the Gateway flips to answered, so the denied half is evidence rather than a probe that simply broke the call. The unit tests pin the same two facts without a Gateway (src/infra/question-gateway-resolver.test.ts), and the handler test asserts a refused click comes back as an ephemeral with the prompt untouched.

One boundary is worth stating plainly: the decision the hook re-takes re-reads the pairing store live, while account.config.allowFrom is the snapshot the provider started with, because a config change restarts the channel provider rather than mutating a running one. The revalidation therefore catches the surface that can change under a running provider.

The end-to-end click still behaves the same on this branch after merging main: a fresh question rendered its buttons, and ada's click through Mattermost's own POST /posts/{id}/actions/{id} retired the post to ✓ **staging** selected by @ada.

Closes #133288

Maintainer integration evidence

Merged trusted main115ee1adf9b3402578a9e8cb723c9717cfb4210c into the approved contributor ancestry after the September6 CI rerun remained queued without jobs. Final heade38aa6fb65712ffb3d04965f85eb3db321a84ac3 retains the same11-file implementation with no conflict repair. All11 files match the trusted-main reconstruction. The pre-write authorization regression fails on main (an answer is written after denial) and passes after the patch. Final173 tests across question encoding, composed interaction handling, channel delivery, existing interactions/normalization and shared resolver pass. Extension production/test types and fresh autoreview pass; full changed checks and current hosted CI are running. Historical real-Mattermost evidence above retains its stated revision/limitations.

Final maintainer checks: full changed-code checks pass; full build exits0 in279.1seconds; Mattermost startup import profile passes. All11 source hashes remain unchanged afterward. The build emits an advisory Control UI startup-size warning (353124B versus353107B); the separate hosted performance gate remains required and its result is recorded by CI. The same warning is under canonical-main investigation for the LINE question PR; no limit was changed.

Mattermost dropped every typed presentation action, so an ask_user prompt arrived as prose with nothing to tap. Question actions have a preserving encoding: the Gateway-owned option index rides in the button's already-signed interaction context, and the click submits it through the question Gateway instead of replaying a synthetic message to the agent.
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: mattermost Channel integration: mattermost size: L labels Sep 1, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 9:03 PM ET / September 11, 2026, 01:03 UTC (Revision 18).

ClawSweeper review

What this changes

Adds clickable answers to supported Mattermost ask_user prompts, rechecks permission before submitting an answer, and preserves prompts when clicks are rejected.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: current main and v2026.9.3 lack Mattermost question buttons. The prior documentation concern is resolved, the additive resolver contract has recorded approval, and the supplied real-runtime evidence supports the behavior. No blocking patch defect was found.

Priority: P2
Reviewed head: e38aa6fb65712ffb3d04965f85eb3db321a84ac3

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with strong runtime evidence, compatible API evolution, and no remaining actionable finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Real Mattermost post-action callbacks exercised the changed encoder and registered handler against an isolated Gateway, showing accepted answers, outsider denial, and safe terminal clicks. A real shared-resolver probe additionally showed post-read denial leaving the Gateway record pending and its allowed control recording an answer; the relevant production modules remain unchanged from the preceding reviewed head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Real Mattermost post-action callbacks exercised the changed encoder and registered handler against an isolated Gateway, showing accepted answers, outsider denial, and safe terminal clicks. A real shared-resolver probe additionally showed post-read denial leaving the Gateway record pending and its allowed control recording an answer; the relevant production modules remain unchanged from the preceding reviewed head.
Evidence reviewed 8 items Current main still lacks the requested encoding: The fetched main renderer discards every typed button action, including question actions; the shared resolver also lacks the optional pre-write authorizer.
Latest release has the same limitation: The v2026.9.3 renderer also excludes typed question actions. The requested Mattermost capability is therefore neither demonstrated on fetched main nor in the supplied latest release.
Existing owners preserve action and authorization boundaries: The renderer uses the existing Gateway-owned option-index helpers. The registered interaction handler consumes question callbacks, repeats channel authorization, and leaves rejected prompts untouched. The shared resolver invokes the predicate after question.get and before question.resolve while preserving its original overload and result union.
Findings None None.
Security None None.

How this fits together

OpenClaw’s question runtime creates prompts and owns their answers. The Mattermost plugin renders those prompts, authenticates button callbacks, and submits accepted choices through the shared Gateway resolver.

flowchart TD
  A[Agent question] --> B[Gateway option list]
  B --> C[Mattermost signed buttons]
  C --> D[User click and transport checks]
  D --> E[Current permission check]
  E -->|Allowed| F[Gateway answer write]
  E -->|Denied| G[Private feedback with prompt preserved]
  F --> H[Resume agent and retire buttons]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +192, Tests +551, Docs +12. Total +755 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 4 203 11 +192
Tests 4 551 0 +551
Docs 3 24 12 +12
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 778 23 +755

Review metrics

Metric Value Why it matters
Production and regression coverage Production net +192 lines; tests net +551 lines Production growth implements question encoding, callback dispatch, and the optional write guard; tests cover option ordering, delivery wiring, and rejected answers.
Shared API compatibility 1 optional authorization callback; original overload retained Existing callers retain their result union, while the Mattermost caller opts into denial handling.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #133288
Summary: This PR implements the paired report’s missing Mattermost question controls; channel-capability gating is overlapping but distinct work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep Mattermost as a transport adapter over the existing question owner, preserving typed replies, canonical option ordering, and permission checks before answer submission.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a new interaction capability: source inspection confirms that current main excludes these buttons, and the supplied real Mattermost traces demonstrate the added click path.

Is this the best way to solve the issue?

Yes. The patch extends the existing channel adapter and shared resolver without creating another question store or reinterpreting unsupported typed actions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d841e35101d5.

Labels

Label justifications:

  • P2: This is a bounded Mattermost interaction improvement; the existing typed-answer fallback remains available.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): Real Mattermost post-action callbacks exercised the changed encoder and registered handler against an isolated Gateway, showing accepted answers, outsider denial, and safe terminal clicks. A real shared-resolver probe additionally showed post-read denial leaving the Gateway record pending and its allowed control recording an answer; the relevant production modules remain unchanged from the preceding reviewed head.
  • proof: sufficient: Contributor real behavior proof is sufficient. Real Mattermost post-action callbacks exercised the changed encoder and registered handler against an isolated Gateway, showing accepted answers, outsider denial, and safe terminal clicks. A real shared-resolver probe additionally showed post-read denial leaving the Gateway record pending and its allowed control recording an answer; the relevant production modules remain unchanged from the preceding reviewed head.

Evidence

What I checked:

  • Current main still lacks the requested encoding: The fetched main renderer discards every typed button action, including question actions; the shared resolver also lacks the optional pre-write authorizer. (extensions/mattermost/src/normalize.ts:24, d841e35101d5)
  • Latest release has the same limitation: The v2026.9.3 renderer also excludes typed question actions. The requested Mattermost capability is therefore neither demonstrated on fetched main nor in the supplied latest release. (extensions/mattermost/src/normalize.ts:24, 1391f7cd2d40)
  • Existing owners preserve action and authorization boundaries: The renderer uses the existing Gateway-owned option-index helpers. The registered interaction handler consumes question callbacks, repeats channel authorization, and leaves rejected prompts untouched. The shared resolver invokes the predicate after question.get and before question.resolve while preserving its original overload and result union. (src/infra/question-gateway-resolver.ts:137, e38aa6fb6571)
  • Complete captured proof inspected: The full retrieved body matches captured SHA-256 51204968c6c1b3341d19e72fccddbd82f352aff36c47754f65392dbe92510057, resolving the omitted-body gap. Its real Mattermost server and isolated Gateway traces show an allowed click recording the selected answer, an outsider’s click preserving the buttons without determining the answer, and terminal clicks avoiding false selection feedback. A real-resolver probe reads the Gateway record before and after post-read denial: it stays pending; the allowed control becomes answered. These are historical runtime observations, supplemented by the final integration’s reported 173 passing tests and extension typechecks; this review executed no target code.
  • Approval addresses the previous contract concern: Patrick-Erichsen’s recorded approvals accept the preserved no-authorizer contract and the callback that narrows write acceptance, including the final integration: feat(mattermost): answer an ask_user question from the option it offers #135350 (review) and feat(mattermost): answer an ask_user question from the option it offers #135350 (review). (e38aa6fb6571)
  • Re-review continuity: The question encoder, interaction handler, and shared resolver are unchanged from the previous reviewed head. The current shared question documentation names Mattermost and describes its terminal-prompt limitation, addressing the retained historical finding. Public docs: docs/tools/ask-user.md. (docs/tools/ask-user.md:34, e38aa6fb6571)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (17 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-02T16:22:45.979Z sha 28ce67a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T18:10:59.785Z sha 407a472 :: found issues before merge. :: [P2] Document Mattermost in the shared ask_user channel guidance
  • reviewed 2026-09-03T04:09:19.337Z sha f6a87a8 :: blocked before merge. :: none
  • reviewed 2026-09-06T20:55:00.433Z sha cad0bf6 :: blocked before merge. :: none
  • reviewed 2026-09-07T03:32:20.430Z sha cad0bf6 :: blocked before merge. :: none
  • reviewed 2026-09-08T18:15:07.412Z sha cad0bf6 :: blocked before merge. :: none
  • reviewed 2026-09-11T00:26:51.760Z sha cad0bf6 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-11T00:35:41.791Z sha cad0bf6 :: needs maintainer review before merge. :: none

A resolver failure or an already-answered question now returns only ephemeral feedback, so the buttons survive and no one is named as having selected an option that was never accepted. The Gateway write also takes its own current-policy authorization decision at the point of effect, the way the model-picker handler already does, instead of leaning on the transport's earlier check.
@edenfunf

edenfunf commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 1, 2026
…cher

The handler was exported only so its own tests could reach it, which knip rightly reports as an unused export. Every case now goes through the handleInteraction that registerMattermostInteractions actually hands to the transport, so the behavior and the wiring are pinned together and the export goes away.
@edenfunf edenfunf closed this Sep 2, 2026
@edenfunf edenfunf reopened this Sep 2, 2026
@edenfunf

edenfunf commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 2, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 6, 2026
@roboclaw-bot roboclaw-bot added the clawtributor-review Clawtributor pull request awaiting prioritized maintainer review label Sep 8, 2026

@Patrick-Erichsen Patrick-Erichsen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed cad0bf686527af670e1c1b5032c5ec0a76a821c3: question actions now preserve the Gateway-owned option index through Mattermost’s signed button context and resolve the pending question without synthesizing another agent turn. Denied, terminal, or failed clicks leave the prompt intact. Supplied live Mattermost/Gateway proof covers successful selection, outsider denial, repeated terminal clicks, and authorization lost after question.get. Independent P0–P2 review is clean.

The optional authorization predicate narrows write acceptance and preserves the existing overload/result contract for current callers; it does not widen capability authority, trust, or persistence or shorten compatibility. The current SDK owner-acceptance checkpoint therefore does not add a separate approval requirement for this change. Code approved; fresh exact-head CI and native merge checks remain pending.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Maintainer approval and acceptance of the additive resolver contract are now recorded at #135350 (review). Current SDK policy was checked: the original no-callback overload and result union are preserved, and the optional callback revalidates and narrows authority immediately before the answer write. No listed SDK code owner or additional enforced owner review applies to this additive contract. Fresh exact-head CI is queued.

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 11, 2026

@Patrick-Erichsen Patrick-Erichsen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved current-main integration at e38aa6f. All11 paths match reviewed reconstruction;173 tests and extension production/test types pass. Main fails the pre-write authorization regression, candidate passes. Fresh autoreview scoped-clean; shared SDK opt-in callback retains the original overload/result union and only narrows write authority. Full changed checks and exact-head hosted/native gates remain before landing.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Final heade38aa6fb65712ffb3d04965f85eb3db321a84ac3 cleanly integrates current main to restore fresh CI after a stalled rerun.173 tests, both extension types and fresh autoreview pass. Existing callback narrows authority and preserves the no-authorizer overload; prior owner acceptance and historical provider proof remain documented. Current source binding and before/after authorization proof are in the updated body.

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@Patrick-Erichsen
Patrick-Erichsen merged commit 5a6d061 into openclaw:main Sep 11, 2026
222 of 224 checks passed
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
…rs (openclaw#135350)

* feat(mattermost): answer an ask_user question from the option it offers

Mattermost dropped every typed presentation action, so an ask_user prompt arrived as prose with nothing to tap. Question actions have a preserving encoding: the Gateway-owned option index rides in the button's already-signed interaction context, and the click submits it through the question Gateway instead of replaying a synthetic message to the agent.

* docs(mattermost): say which presentation actions become buttons

* test(mattermost): pin the question wiring and the outbound option index

* test(mattermost): type the interaction-handler mock instead of casting its call

* fix(mattermost): retire a question prompt only for an accepted answer

A resolver failure or an already-answered question now returns only ephemeral feedback, so the buttons survive and no one is named as having selected an option that was never accepted. The Gateway write also takes its own current-policy authorization decision at the point of effect, the way the model-picker handler already does, instead of leaning on the transport's earlier check.

* test(mattermost): drive question clicks through the registered dispatcher

The handler was exported only so its own tests could reach it, which knip rightly reports as an unused export. Every case now goes through the handleInteraction that registerMattermostInteractions actually hands to the transport, so the behavior and the wiring are pinned together and the export goes away.

* fix(questions): re-check access between the question read and its resolve

* fix(questions): keep the denied outcome off the result union callers already exhaust

* docs(questions): list Mattermost among the native ask_user button channels

* fix(mattermost): leave the post alone when a click is refused

* test(mattermost): pin the question prompt text the outbound path posts

* docs(mattermost): state every question shape that stays prose

* docs(mattermost): complete the list of question shapes that stay prose

* test(mattermost): use question fixtures the Gateway can actually produce

* docs(questions): keep each comment on the declaration it describes
hbjydev pushed a commit to hbjydev/phoebe that referenced this pull request Sep 20, 2026
…26.9.5) (#696)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/openclaw/openclaw](https://openclaw.ai) ([source](https://github.com/openclaw/openclaw)) | patch | `2026.9.4` → `2026.9.5` |

---

### Release Notes

<details>
<summary>openclaw/openclaw (ghcr.io/openclaw/openclaw)</summary>

### [`v2026.9.5`](https://github.com/openclaw/openclaw/releases/tag/v2026.9.5): openclaw 2026.9.5

[Compare Source](openclaw/openclaw@v2026.9.4...v2026.9.5)

#### 2026.9.5

##### Highlights

- **Safer upgrades and retained history:** Doctor preserves session history and repeated-repair state, finishes upgrades with invalid retained histories, and avoids repeatedly stalling or stopping a Gateway that is still starting. ([#&#8203;149741](openclaw/openclaw#149741), [#&#8203;149956](openclaw/openclaw#149956), [#&#8203;148901](openclaw/openclaw#148901), [#&#8203;149308](openclaw/openclaw#149308), [#&#8203;149823](openclaw/openclaw#149823), [#&#8203;149760](openclaw/openclaw#149760)) Related [#&#8203;149822](openclaw/openclaw#149822) Thanks [@&#8203;masatohoshino](https://github.com/masatohoshino).
- **Live plugin management:** install and reload supported plugins without restarting the Gateway, update tools in active agent and managed Codex conversations, and manage multiple plugins in one CLI command. ([#&#8203;145484](openclaw/openclaw#145484), [#&#8203;145710](openclaw/openclaw#145710), [#&#8203;145713](openclaw/openclaw#145713), [#&#8203;145648](openclaw/openclaw#145648), [#&#8203;145917](openclaw/openclaw#145917), [#&#8203;149910](openclaw/openclaw#149910)) Related [#&#8203;149909](openclaw/openclaw#149909) Thanks [@&#8203;obviyus](https://github.com/obviyus).
- **Clearer multi-agent work:** distinguish execution from result delivery, use private parent completion handoffs, resume scoped session inventories, and deliver one answer for each steered input. ([#&#8203;147571](openclaw/openclaw#147571), [#&#8203;147206](openclaw/openclaw#147206), [#&#8203;150065](openclaw/openclaw#150065), [#&#8203;148051](openclaw/openclaw#148051), [#&#8203;149925](openclaw/openclaw#149925)) Related [#&#8203;27445](openclaw/openclaw#27445), [#&#8203;147955](openclaw/openclaw#147955) Thanks [@&#8203;good-warning](https://github.com/good-warning), [@&#8203;nicknmorty](https://github.com/nicknmorty), [@&#8203;obviyus](https://github.com/obviyus), [@&#8203;VACInc](https://github.com/VACInc), and [@&#8203;vincentkoc](https://github.com/vincentkoc).
- **A desktop-first Systems workspace:** manage Gateway connections through web login and switch saved Gateways independently of Primary, with sidebar switching on iOS and Android. ([#&#8203;147519](openclaw/openclaw#147519), [#&#8203;148526](openclaw/openclaw#148526), [#&#8203;147684](openclaw/openclaw#147684), [#&#8203;146641](openclaw/openclaw#146641), [#&#8203;148209](openclaw/openclaw#148209)) Related [#&#8203;147217](openclaw/openclaw#147217), [#&#8203;147576](openclaw/openclaw#147576), [#&#8203;148205](openclaw/openclaw#148205) Thanks [@&#8203;IWhatsskill](https://github.com/IWhatsskill), [@&#8203;Solvely-Colin](https://github.com/Solvely-Colin), and [@&#8203;vincentkoc](https://github.com/vincentkoc).
- **More flexible live voice:** use GPT Live across calls and meetings, choose account-specific Talk defaults, and change voices during an active Talk or Discord call. ([#&#8203;145382](openclaw/openclaw#145382), [#&#8203;146546](openclaw/openclaw#146546), [#&#8203;146676](openclaw/openclaw#146676)) Related [#&#8203;145071](openclaw/openclaw#145071).
- **Citations and review in context:** preview cited sources in web and native chats, turn selected chat text into editable comments, reference selected Android review lines, and toggle word wrapping in Review. ([#&#8203;148431](openclaw/openclaw#148431), [#&#8203;148904](openclaw/openclaw#148904), [#&#8203;148906](openclaw/openclaw#148906), [#&#8203;148649](openclaw/openclaw#148649), [#&#8203;144101](openclaw/openclaw#144101), [#&#8203;143972](openclaw/openclaw#143972)) Related [#&#8203;144093](openclaw/openclaw#144093), [#&#8203;148409](openclaw/openclaw#148409) Thanks [@&#8203;ansxor](https://github.com/ansxor), [@&#8203;IWhatsskill](https://github.com/IWhatsskill), [@&#8203;Marvinthebored](https://github.com/Marvinthebored), [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen), and [@&#8203;shakkernerd](https://github.com/shakkernerd).
- **Simpler model sign-in and selection:** align native sign-in with runtime choices, sign in without changing the model, choose across agent harnesses, and connect Radius models with browser sign-in and native streaming. ([#&#8203;143588](openclaw/openclaw#143588), [#&#8203;144329](openclaw/openclaw#144329), [#&#8203;147994](openclaw/openclaw#147994), [#&#8203;145377](openclaw/openclaw#145377)) Thanks [@&#8203;obviyus](https://github.com/obviyus).

##### Changes

- **Conversation navigation:** native sidebars preview pending requests, while macOS, iOS, Android, and web chat can collapse completed work so replies and older history remain easier to read. ([#&#8203;149811](openclaw/openclaw#149811), [#&#8203;147540](openclaw/openclaw#147540), [#&#8203;148002](openclaw/openclaw#148002), [#&#8203;148050](openclaw/openclaw#148050), [#&#8203;147295](openclaw/openclaw#147295)) Related [#&#8203;147271](openclaw/openclaw#147271), [#&#8203;149682](openclaw/openclaw#149682) Thanks [@&#8203;vyctorbrzezowski](https://github.com/vyctorbrzezowski).

- **Agent setup and teams:** start from role templates and a team preset, show every agent and its sessions in team mode, and use a roster-first Agents home. ([#&#8203;145712](openclaw/openclaw#145712), [#&#8203;141476](openclaw/openclaw#141476), [#&#8203;141097](openclaw/openclaw#141097)) Thanks [@&#8203;hannesrudolph](https://github.com/hannesrudolph).

- **Group conversations:** coordinate bounded multi-agent group threads across channels and share selected sessions read-only with a paired team Gateway. ([#&#8203;141411](openclaw/openclaw#141411), [#&#8203;136253](openclaw/openclaw#136253))

- **Activity and run artifacts:** show rolling session recaps, Git changes and PR previews, and select assistant-delivered files by the run that produced them. ([#&#8203;147441](openclaw/openclaw#147441), [#&#8203;145530](openclaw/openclaw#145530), [#&#8203;147682](openclaw/openclaw#147682)) Related [#&#8203;145529](openclaw/openclaw#145529), [#&#8203;147383](openclaw/openclaw#147383) Thanks [@&#8203;onlyysaurabh](https://github.com/onlyysaurabh) and [@&#8203;vincentkoc](https://github.com/vincentkoc).

- **Browser and dashboards:** download assets from the Browser sidebar, share browser dashboards with agents, embed websites in full-screen session dashboards, and save shared split/full-screen defaults. ([#&#8203;144480](openclaw/openclaw#144480), [#&#8203;146702](openclaw/openclaw#146702), [#&#8203;146312](openclaw/openclaw#146312), [#&#8203;146475](openclaw/openclaw#146475)) Related [#&#8203;144477](openclaw/openclaw#144477), [#&#8203;146303](openclaw/openclaw#146303), [#&#8203;146308](openclaw/openclaw#146308), [#&#8203;146577](openclaw/openclaw#146577) Thanks [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen).

- **Desktop interaction:** control Gateway desktops without a paired node, match virtual worker displays to their viewport, and watch live desktops in Picture-in-Picture. ([#&#8203;147275](openclaw/openclaw#147275), [#&#8203;143938](openclaw/openclaw#143938), [#&#8203;143836](openclaw/openclaw#143836)) Related [#&#8203;143829](openclaw/openclaw#143829), [#&#8203;147274](openclaw/openclaw#147274) Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc).

- **Remote workspaces:** start remote sessions without a repository, select repository-defined source checkouts, and reduce source storage through filesystem snapshots, APFS clones, and ReFS clones. ([#&#8203;147773](openclaw/openclaw#147773), [#&#8203;149581](openclaw/openclaw#149581), [#&#8203;146251](openclaw/openclaw#146251), [#&#8203;146338](openclaw/openclaw#146338), [#&#8203;146403](openclaw/openclaw#146403)) Related [#&#8203;146250](openclaw/openclaw#146250), [#&#8203;146288](openclaw/openclaw#146288), [#&#8203;149580](openclaw/openclaw#149580) Thanks [@&#8203;fuller-stack-dev](https://github.com/fuller-stack-dev) and [@&#8203;obviyus](https://github.com/obviyus).

- **Code mode:** find MCP tools by task, reuse results between code cells, retain oversized results for later cells, and infer result shape from the requested action. ([#&#8203;147134](openclaw/openclaw#147134), [#&#8203;147154](openclaw/openclaw#147154), [#&#8203;147278](openclaw/openclaw#147278), [#&#8203;147291](openclaw/openclaw#147291))

- **Plugin state and background work:** offer asynchronous task/flow reads and worker-backed keyed and conditional state operations without removing the supported synchronous SDK paths. ([#&#8203;145851](openclaw/openclaw#145851), [#&#8203;146557](openclaw/openclaw#146557), [#&#8203;147891](openclaw/openclaw#147891))

- **Hot policy changes:** apply browser control policy, Telegram access/reply policy, and renewed TLS certificates without restarting their running services. ([#&#8203;146100](openclaw/openclaw#146100), [#&#8203;146129](openclaw/openclaw#146129), [#&#8203;146267](openclaw/openclaw#146267))

- **Model providers:** support OpenRouter sign-in from private chat, explicit consent before exposing restricted provider models, and opt-in stored HTTP continuation for compatible Responses endpoints. ([#&#8203;144491](openclaw/openclaw#144491), [#&#8203;144468](openclaw/openclaw#144468), [#&#8203;128633](openclaw/openclaw#128633)) Related [#&#8203;123215](openclaw/openclaw#123215) Thanks [@&#8203;hartmark](https://github.com/hartmark), [@&#8203;obviyus](https://github.com/obviyus), and [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen).

- **Codex interaction:** answer asynchronous questions while other agent work continues, view usage beside saved logins, and expose slow or failed catalog phases with retained-request correlation. ([#&#8203;144664](openclaw/openclaw#144664), [#&#8203;132453](openclaw/openclaw#132453), [#&#8203;132454](openclaw/openclaw#132454), [#&#8203;148639](openclaw/openclaw#148639), [#&#8203;148735](openclaw/openclaw#148735), [#&#8203;149616](openclaw/openclaw#149616)) Related [#&#8203;144643](openclaw/openclaw#144643), [#&#8203;148629](openclaw/openclaw#148629), [#&#8203;148728](openclaw/openclaw#148728) Thanks [@&#8203;jesse-merhi](https://github.com/jesse-merhi).

- **Daybreak fallback:** retry supported cyber-refused turns on Daybreak, surface cyber notices, and announce successful retries. ([#&#8203;143761](openclaw/openclaw#143761), [#&#8203;145291](openclaw/openclaw#145291), [#&#8203;147146](openclaw/openclaw#147146)) Thanks [@&#8203;VACInc](https://github.com/VACInc).

- **Triage handoffs:** add Muse, Grok, Cursor, Kimi Code, and Qwen Code handoffs through the existing triage workflow. ([#&#8203;149703](openclaw/openclaw#149703), [#&#8203;149877](openclaw/openclaw#149877))

- **Automation history:** query and paginate run history from the CLI, show readable timer wake timestamps, and list matches when an automation name is ambiguous. ([#&#8203;141777](openclaw/openclaw#141777), [#&#8203;141742](openclaw/openclaw#141742), [#&#8203;150082](openclaw/openclaw#150082)) Related [#&#8203;58574](openclaw/openclaw#58574), [#&#8203;141745](openclaw/openclaw#141745) Thanks [@&#8203;Alix-007](https://github.com/Alix-007), [@&#8203;Celthi](https://github.com/Celthi), [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen), and [@&#8203;shakkernerd](https://github.com/shakkernerd).

- **Structured channel questions:** answer an agent question directly from its offered Mattermost option or LINE tap. ([#&#8203;135350](openclaw/openclaw#135350), [#&#8203;133421](openclaw/openclaw#133421)) Related [#&#8203;133288](openclaw/openclaw#133288), [#&#8203;133418](openclaw/openclaw#133418) Thanks [@&#8203;edenfunf](https://github.com/edenfunf) and [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen).

- **Chat composition and files:** keep drafting while history loads, offer emoji shortcodes, retain file previews in tabs with HTML rendering, and display image attachments inline in the TUI. ([#&#8203;143625](openclaw/openclaw#143625), [#&#8203;146737](openclaw/openclaw#146737), [#&#8203;146672](openclaw/openclaw#146672), [#&#8203;146644](openclaw/openclaw#146644)) Related [#&#8203;143607](openclaw/openclaw#143607), [#&#8203;146590](openclaw/openclaw#146590), [#&#8203;146610](openclaw/openclaw#146610), [#&#8203;146655](openclaw/openclaw#146655) Thanks [@&#8203;VACInc](https://github.com/VACInc), [@&#8203;vincentkoc](https://github.com/vincentkoc), and [@&#8203;vyctorbrzezowski](https://github.com/vyctorbrzezowski).

- **Review and workboards:** inspect CI jobs and steps from PR chips and select or update multiple workboard cards together. ([#&#8203;148070](openclaw/openclaw#148070), [#&#8203;144756](openclaw/openclaw#144756)) Related [#&#8203;147952](openclaw/openclaw#147952) Thanks [@&#8203;vyctorbrzezowski](https://github.com/vyctorbrzezowski).

- **Personalization:** choose an avatar during agent hatching, use custom SVG session icons, and distinguish plugin activity with compact icons. ([#&#8203;146669](openclaw/openclaw#146669), [#&#8203;147442](openclaw/openclaw#147442), [#&#8203;147333](openclaw/openclaw#147333), [#&#8203;143711](openclaw/openclaw#143711)) Related [#&#8203;143683](openclaw/openclaw#143683) Thanks [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen).

- **Gateway visibility:** show ping and shared activity graphs, a browser-tab status dot, and compact System busyness widgets with all three metrics. ([#&#8203;146755](openclaw/openclaw#146755), [#&#8203;147388](openclaw/openclaw#147388), [#&#8203;147760](openclaw/openclaw#147760), [#&#8203;147840](openclaw/openclaw#147840)) Related [#&#8203;147343](openclaw/openclaw#147343), [#&#8203;147757](openclaw/openclaw#147757), [#&#8203;147829](openclaw/openclaw#147829) Thanks [@&#8203;vyctorbrzezowski](https://github.com/vyctorbrzezowski).

- **Native desktop layout:** unify Tauri setup, Quick Chat themes, title bars, and window controls; the macOS app defaults to the web experience while retaining its experimental native experience. ([#&#8203;148808](openclaw/openclaw#148808), [#&#8203;147097](openclaw/openclaw#147097), [#&#8203;149763](openclaw/openclaw#149763)) Related [#&#8203;147096](openclaw/openclaw#147096).

- **Diagnostics:** report when the runtime was built from a different commit than HEAD, expose administrative CPU profiles, and inspect native FreeBSD rc.d service discovery. ([#&#8203;144499](openclaw/openclaw#144499), [#&#8203;148004](openclaw/openclaw#148004), [#&#8203;148875](openclaw/openclaw#148875)) Related [#&#8203;148003](openclaw/openclaw#148003) Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;vincentkoc](https://github.com/vincentkoc).

- **Provider and channel configuration:** expose official channel labels/docs in JSON listings, allow a Discord API URL override, and show comparative cost analysis in the Control UI. ([#&#8203;93265](openclaw/openclaw#93265), [#&#8203;118067](openclaw/openclaw#118067), [#&#8203;100432](openclaw/openclaw#100432)) Related [#&#8203;100405](openclaw/openclaw#100405) Thanks [@&#8203;fuller-stack-dev](https://github.com/fuller-stack-dev), [@&#8203;obviyus](https://github.com/obviyus), and [@&#8203;RomneyDa](https://github.com/RomneyDa).

- **Execution options:** configure approval-reviewer thinking and fast mode, and default parallel-session capacity to four runs per available CPU. ([#&#8203;147192](openclaw/openclaw#147192), [#&#8203;147423](openclaw/openclaw#147423)) Thanks [@&#8203;VACInc](https://github.com/VACInc).

- **Plugin SDK migration — Gateway V2:** the existing Gateway handler and node-session imports now expose physical WebSocket, generic framed, and HTTP polling capabilities honestly. Before WebSocket-only operations, narrow `node.client.webSocket`; narrow `node.client.socket` separately for framed operations. Polling nodes remain visible, and the node wire protocol is unchanged. Migration details: `/plugins/sdk-migration/compatibility-policy#gateway-node-transport-sdk-v2`. Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc) and [@&#8203;RomneyDa](https://github.com/RomneyDa).

##### Fixes

- **Identity and authorization:** stop inferring forwarded sender identity from message text, stop MiniMax token requests after chat-login permission is revoked, and preserve attachments whose content types use prototype-like names. ([#&#8203;138579](openclaw/openclaw#138579), [#&#8203;149140](openclaw/openclaw#149140), [#&#8203;143673](openclaw/openclaw#143673)) Related [#&#8203;149139](openclaw/openclaw#149139) Thanks [@&#8203;LiuwqGit](https://github.com/LiuwqGit), [@&#8203;masatohoshino](https://github.com/masatohoshino), [@&#8203;obviyus](https://github.com/obviyus), and [@&#8203;xialonglee](https://github.com/xialonglee).

- **Transcript and session ownership:** prevent stale companion/cloud transcript writes, preserve context and ownership across compaction, and track new sessions before their first transcript write. ([#&#8203;149997](openclaw/openclaw#149997), [#&#8203;149840](openclaw/openclaw#149840), [#&#8203;149712](openclaw/openclaw#149712))

- **Final replies and completed work:** retain completed tool receipts through text-only finalization and empty-answer retries without repeating completed actions or recording internal continuation prompts as new user messages. Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc) and [@&#8203;RomneyDa](https://github.com/RomneyDa).

- **Large-history responsiveness:** keep large session detail and chat metadata reads responsive, avoid blocking the Gateway during memory index publication, and reduce retention work and startup/Doctor memory pressure. ([#&#8203;149749](openclaw/openclaw#149749), [#&#8203;149853](openclaw/openclaw#149853), [#&#8203;149901](openclaw/openclaw#149901), [#&#8203;149754](openclaw/openclaw#149754), [#&#8203;149704](openclaw/openclaw#149704)) Thanks [@&#8203;fuller-stack-dev](https://github.com/fuller-stack-dev).

- **Update and Doctor recovery:** preserve shared WAL after a refused restore, unblock shared-state repair for July upgrades, and avoid false pending migrations for bundled runtimes. ([#&#8203;149918](openclaw/openclaw#149918), [#&#8203;149753](openclaw/openclaw#149753), [#&#8203;149653](openclaw/openclaw#149653)) Thanks [@&#8203;obviyus](https://github.com/obviyus).

- **Service upgrades:** preserve Gateway authentication when reinstalling legacy services and avoid timing out systemd restart inspection. ([#&#8203;149686](openclaw/openclaw#149686), [#&#8203;149970](openclaw/openclaw#149970))

- **Managed-service updates:** fix service environment refresh failures when upgrading from 2026.9.4 to 2026.9.5 with `openclaw update`. ([#&#8203;151977](openclaw/openclaw#151977))

- **Subagent continuation:** inherit the active model at spawn, enforce fork limits against current context, and resume tasks after output-limited tool calls. ([#&#8203;149036](openclaw/openclaw#149036), [#&#8203;149666](openclaw/openclaw#149666), [#&#8203;149844](openclaw/openclaw#149844)) Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc).

- **Channel shutdown:** finish accepted Telegram work, Discord introductions, and deferred Slack replay before shutdown, while preserving Telegram spool settlement ownership. ([#&#8203;150080](openclaw/openclaw#150080), [#&#8203;150072](openclaw/openclaw#150072), [#&#8203;150073](openclaw/openclaw#150073), [#&#8203;149953](openclaw/openclaw#149953)) Thanks [@&#8203;obviyus](https://github.com/obviyus).

- **Channel startup and routing:** avoid blocking Discord startup on persisted bindings and allow cross-provider messaging by default. ([#&#8203;149861](openclaw/openclaw#149861), [#&#8203;149875](openclaw/openclaw#149875))

- **Plugin reloads:** reuse the published inbound registry and bundled setup code, keep Lossless usable after settings reload, and validate source reloads under Bun. ([#&#8203;149648](openclaw/openclaw#149648), [#&#8203;149646](openclaw/openclaw#149646), [#&#8203;149675](openclaw/openclaw#149675), [#&#8203;150088](openclaw/openclaw#150088)) Thanks [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen).

- **Provider execution:** retain disabled-plugin CLI backend capabilities during inspection, reject incomplete compatible reply streams, and preserve the configured transport during authentication refresh. ([#&#8203;149837](openclaw/openclaw#149837), [#&#8203;149842](openclaw/openclaw#149842), [#&#8203;150003](openclaw/openclaw#150003)) Related [#&#8203;149854](openclaw/openclaw#149854), [#&#8203;149855](openclaw/openclaw#149855) Thanks [@&#8203;obviyus](https://github.com/obviyus), [@&#8203;zhangguiping-xydt](https://github.com/zhangguiping-xydt), and [@&#8203;SunnyShu0925](https://github.com/SunnyShu0925).

- **Codex startup and catalogs:** prevent service refresh from repeatedly aborting startup, bound catalog memory while retaining tied rows, and avoid repeated scans across multiple homes. ([#&#8203;149365](openclaw/openclaw#149365), [#&#8203;150112](openclaw/openclaw#150112), [#&#8203;149879](openclaw/openclaw#149879)) Thanks [@&#8203;bdjben](https://github.com/bdjben) and [@&#8203;obviyus](https://github.com/obviyus).

- **Automation correctness:** prevent extra event-schedule runs, reject ambiguous exact-name lookups, and keep selected automation history and edits attached to the intended task. ([#&#8203;149902](openclaw/openclaw#149902), [#&#8203;149958](openclaw/openclaw#149958), [#&#8203;149955](openclaw/openclaw#149955), [#&#8203;150129](openclaw/openclaw#150129)) Thanks [@&#8203;Alix-007](https://github.com/Alix-007).

- **Session navigation:** retain archive confirmation after leaving Sessions, preserve pagination when switching agents during deletion, and keep newer selections when older mutations finish. ([#&#8203;150108](openclaw/openclaw#150108), [#&#8203;150125](openclaw/openclaw#150125), [#&#8203;149959](openclaw/openclaw#149959))

- **Chat state:** keep your own messages right-aligned through refresh and reconnect, and clear resolved queued-message reorder conflicts. ([#&#8203;147634](openclaw/openclaw#147634), [#&#8203;149962](openclaw/openclaw#149962)) Related [#&#8203;147511](openclaw/openclaw#147511) Thanks [@&#8203;keith9681](https://github.com/keith9681), [@&#8203;obviyus](https://github.com/obviyus), and [@&#8203;SunnyShu0925](https://github.com/SunnyShu0925).

- **Files and selection:** keep workspace files readable, preserve Files selection during directory refreshes, retain parent navigation for unavailable folders, and preserve model searches during text composition. ([#&#8203;149499](openclaw/openclaw#149499), [#&#8203;149900](openclaw/openclaw#149900), [#&#8203;150118](openclaw/openclaw#150118), [#&#8203;149845](openclaw/openclaw#149845))

- **Windows paths and credentials:** preserve state roots during database admission and worker startup, retain credential reads, and read exact configuration filenames containing whitespace. ([#&#8203;149976](openclaw/openclaw#149976), [#&#8203;150035](openclaw/openclaw#150035), [#&#8203;149124](openclaw/openclaw#149124), [#&#8203;149629](openclaw/openclaw#149629)) Related [#&#8203;149630](openclaw/openclaw#149630) Thanks [@&#8203;obviyus](https://github.com/obviyus) and [@&#8203;zhangguiping-xydt](https://github.com/zhangguiping-xydt).

- **Workspace safety:** keep file tools aligned with overlapping sandbox mounts and preserve work through worktree creation and cleanup races. ([#&#8203;148893](https://github.com/openclaw/openclaw/issues/148893), [#&#8203;149914](https://github.com/openclaw/openclaw/issues/149914)) Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc).

- **Legacy updater handoffs:** keep the Node runner resolver independent of candidate runtime imports, complete changed-plugin Doctor work through the correct parent/child owner, and inspect copied Doctor contracts in private rehearsals while leaving live installation paths protected. Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc) and [@&#8203;RomneyDa](https://github.com/RomneyDa).

- **Plugin SDK authoring:** retain released boolean memory-search `enabled` values and undefined per-channel `responseUsage` entries without changing runtime resolution or persisted configuration schemas. Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc) and [@&#8203;RomneyDa](https://github.com/RomneyDa).

- **Shipped SDK compatibility:** preserve full-config and readonly roster inputs, versioned legacy model-selection authoring, Discord component registration's `void` return, and Gateway plugin metadata notifications through their existing lifecycle and restart owners. The deprecated model-policy `allowsKey` member remains source-only and is never used for authorization; asynchronous completion and errors remain owned after a void call returns. Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc) and [@&#8203;RomneyDa](https://github.com/RomneyDa).

##### Complete contribution record

The full contribution record is available in the tag-pinned [CHANGELOG.md](https://github.com/openclaw/openclaw/blob/v2026.9.5/CHANGELOG/records/2026.9.5.md#complete-contribution-record).

##### Release verification

- npm package: <https://www.npmjs.com/package/openclaw/v/2026.9.5>
- registry tarball: <https://registry.npmjs.org/openclaw/-/openclaw-2026.9.5.tgz>
- integrity: `sha512-TCO/ImVLh5HkF4tdfo7iriIa7kT6iYkIr/jR5ZOkePGFGhUx5Oe7DE716Y1DzzG2teRAVDdCjgJDu1A24Yta7w==`
- release SHA: `ec9c1a13db8938e5a3eaa51fca2e981cde2395a9`
- full release CI report: <https://github.com/openclaw/releases/blob/main/evidence/2026.9.5/release-evidence.md>
- release publish: <https://github.com/openclaw/openclaw/actions/runs/35414217443>
- npm preflight: <https://github.com/openclaw/openclaw/actions/runs/35382454474>
- full release validation: <https://github.com/openclaw/openclaw/actions/runs/35381634370>
- plugin npm publish: <https://github.com/openclaw/openclaw/actions/runs/35414496234>
- plugin ClawHub submission: <https://github.com/openclaw/openclaw/actions/runs/35414501298>; public artifact verification follows successful release-parent completion
- plugin ClawHub bootstrap: dispatched separately, not awaited by this proof: <https://github.com/openclaw/openclaw/actions/runs/35414503229>
- Stable soak waived by operator: "Operator-approved by Peter for 2026.9.5: soak-only live/E2E lanes blocked by infrastructure and main-owned fixture failures; non-soak Full Release Validation [`3538163`](openclaw/openclaw@35381634370) attempt 2 green; 9.4 to 9.5 update proven on systemd-service and plain installs."
- npm Telegram beta E2E: not supplied
- Android APK: skipped — apps/android/version.json is 2026.8.2, release train is 2026.9.5; run the shared mobile cutter (scripts/mobile-release-version.ts --prepare) before the next tag.

</details>

---

### Configuration

📅 **Schedule**: (in timezone Europe/London)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEwNC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://git.hayden.moe/hayden/phoebe/pulls/696
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: mattermost Channel integration: mattermost clawtributor-review Clawtributor pull request awaiting prioritized maintainer review docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mattermost has no encoding for ask_user question actions, so its prompts arrive without options

3 participants