Skip to content

feat(clickclack): session discussions — bound channels, side agent, lifecycle sync - #111503

Merged
steipete merged 5 commits into
mainfrom
claude/clickclack-discussions
Jul 19, 2026
Merged

steipete merged 5 commits into
mainfrom
claude/clickclack-discussions

Conversation

@steipete

@steipete steipete commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

OpenClaw sessions now have a generic discussion seam (#111337), but no provider implements it. Teams running the bundled ClickClack channel plugin have no way to bind a ClickClack channel to a session, keep it lifecycle-synced (archive/rename/groups), embed it in the Control UI panel, or let a side agent in that channel observe and relay to the session it discusses.

Why This Change Was Made

Implements the ClickClack discussions module inside the bundled clickclack plugin (transport-only boundary preserved):

  • Provider: registers the session.discussion provider — open creates one externally-managed ClickClack channel per session (name slugified from the label, external_ref = session key, external_url deep link to the Control UI, sidebar section default "Sessions"), info returns the /embed/channel URL for the panel. Idempotent with crash-safe pending/tombstone state so ambiguous HTTP outcomes cannot double-create channels or leak into ordinary routing.
  • Lifecycle sync: session archive/unarchive → channel archive/unarchive; label → rename; category/groups → sidebar section; delete → archive (ClickClack never deletes history). Because plugin runtime exposes no sessions.changed subscription, sync uses lazy reconciliation on provider calls plus a bounded 60s reconciler that runs only while bindings exist (documented tradeoff at the code site).
  • Side agent: messages in a bound channel route to a dedicated discussion session (same agent id, disc-<hash> peer derived from the exact main-session incarnation and channel identity). A before_tool_call policy fail-closes its sessions_history/session_status/sessions_send to the attached main session only, with revoked-channel, archived-binding, stale-incarnation, and inactive-account checks. Core session tools gained exact-incarnation scoped grants to support this without widening general visibility.
  • Main-session pull: a read-only discussion tool returns recent channel messages ([Author] text), no push into the transcript.
  • Stale/retargeted/revoked bindings fail closed everywhere.

User Impact

With a discussions-enabled ClickClack account configured, every session can get a team channel one click away in the Control UI: humans discuss next to the session, the embedded side agent answers questions about live progress and can relay to the session when asked, the main agent can read the discussion on demand, and archiving the session archives the channel.

Evidence

  • ClickClack plugin suite: 20 files / 232 tests pass; discussions service+contract+policy tests cover binding lifecycle, idempotent open, archive/rename/section sync mapping, revocation, incarnation staleness, routing, and tool policy.
  • Core scoped-access: 6 files / 176 colocated agent-tool tests plus session-visibility tests pass; exact-incarnation grants never register durable watchers that could survive session-key reuse.
  • Extension + extension-test typecheck lanes pass; targeted oxlint/oxfmt pass; conflict-marker and git diff --check clean.
  • Fresh structured autoreview: clean (0.98).
  • Companion ClickClack server work already live: feat: externally managed channels, sidebar sections, archive hiding, embed channel view clickclack#102 (managed channels + embed channel view) and feat(discord): add native reply-to-message support #103 (Access SSO), deployed at clack.openclaw.ai.

Live evidence (added post-review)

Managed-channel lifecycle exercised against a live ClickClack server (clickclack serve, real ccb_ bot token, dev-bootstrap workspace) — the exact HTTP contract the plugin's http-client drives for open/lifecycle-sync/side-agent-read:

=== ClickClack managed-channel lifecycle (live, bot token, redacted) ===
1. open   -> created s-auth-bug-fix  managed:True  ref:agent:main:auth-bug-fix  section:Sessions
2. label  -> renamed s-auth-token-rotation
3. group  -> sidebar_section:Shipped
4. archive-> archived_at set:True (messages retained)
5. restore-> archived_at cleared:True
6. read   -> channel messages readable:1 (discussion tool + side-agent source)
7. embed  -> /embed/channel/<W>/<C> HTTP 200

Every lifecycle transition the plugin maps (session archive→channel archive, restore, label→rename, category/groups→section, delete→archive-not-delete) is confirmed at the server contract; the in-gateway orchestration (binding store, idempotent open, incarnation staleness, revoked-channel + archived-binding + inactive-account fail-closed, side-agent routing, tool-target policy) is covered by the plugin suite (232 tests, incl. discussions/*.test.ts).

Owner decision required before merge

ClawSweeper flagged, and I agree, that the exact-incarnation scoped session-access contract in this PR extends session-tool visibility (sessions_history/session_status/sessions_send) across a plugin→core security boundary. It is fail-closed and incarnation-scoped, but it is a new cross-boundary capability. Per repo policy this needs explicit maintainer/owner sign-off on the security-boundary ownership before landing — holding the merge for that approval.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling labels Jul 19, 2026
@steipete
steipete marked this pull request as ready for review July 19, 2026 18:28
@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Jul 19, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Jul 19, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 52358dcd0b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +18 to +20
api.registerTool((context) =>
createClickClackDiscussionTool({ service, sessionKey: context.sessionKey }),
);

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.

P2 Badge Hide the discussion tool from unbound sessions

When discussions are disabled—the default—or the current session has no binding, this factory still returns a concrete discussion tool, so every agent prompt receives a tool that can only answer “No discussion is bound.” This contradicts docs/channels/clickclack.md:254, which says the attached main session receives the tool, and unnecessarily consumes prompt space while inviting useless calls; return null from the full-registration factory unless the feature is enabled and this session has a live binding.

Useful? React with 👍 / 👎.

@clawsweeper

clawsweeper Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 19, 2026, 5:33 PM ET / 21:33 UTC.

Summary
Adds opt-in ClickClack session discussion channels with lifecycle synchronization, a discussion side agent, and narrowly scoped access to the attached main session.

PR surface: Source +2397, Tests +2727, Docs +190, Generated 0. Total +5314 across 45 files.

Reproducibility: not applicable. This PR proposes an opt-in capability rather than fixing an established broken behavior. The provided terminal transcript is useful live contract evidence, but it is not a reproduction of a current-main defect.

Review metrics: 2 noteworthy metrics.

  • Discussion configuration surface: 1 opt-in object added with 4 fields. The enabled path requires an administrative ClickClack token and introduces a new operational configuration contract.
  • Scoped core session actions: 3 actions: history, status, send. These are the only core session-tool operations the plugin can authorize outside normal tree visibility.

Stored data model
Persistent data-model change detected: serialized state: src/agents/openclaw-tools.sessions.test.ts, serialized state: src/agents/tools/session-status-tool.ts, serialized state: src/agents/tools/sessions-history-tool.test.ts, serialized state: src/agents/tools/sessions-history-tool.ts, serialized state: src/agents/tools/sessions-resolution.test.ts, serialized state: src/agents/tools/sessions-resolution.ts, and 10 more. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦐 gold shrimp
Patch quality: 🐚 platinum hermit
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Add redacted real OpenClaw gateway evidence for binding, side-agent routing, allowed scoped access, and a denied stale or revoked path.
  • Obtain explicit owner approval for the scoped session-access contract.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The redacted terminal transcript convincingly exercises the live ClickClack server lifecycle contract, but it does not show the changed OpenClaw gateway behavior—binding creation, inbound side-agent routing, scoped access, and fail-closed revocation—in a real setup. Add redacted gateway output, logs, or a recording; after updating the PR body, a fresh review should run automatically, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Risk before merge

  • [P1] The new scoped-access registry lets a bundled plugin authorize sessions_history, session_status, and sessions_send beyond ordinary session-tree visibility; maintainers must explicitly accept that permanent plugin-to-core security contract before merge.
  • [P1] The supplied live evidence validates ClickClack server lifecycle operations but does not demonstrate the actual OpenClaw gateway orchestration or the revoked/stale side-agent paths against a real runtime.
  • [P1] The opt-in configuration adds one enabled account selector and persisted discussion bindings; upgrades are safe by default because discussions are disabled, but the enabled path needs clear ownership and operational proof.

Maintainer options:

  1. Approve the scoped grant after gateway proof (recommended)
    Obtain explicit security-boundary approval and add a redacted gateway run proving the allowed and denied side-agent paths before merging.
  2. Narrow the feature to managed discussion channels
    Remove side-agent session-tool delegation and preserve the channel lifecycle plus read-only discussion tool if maintainers do not want a plugin-to-core grant.

Next step before merge

  • [P1] This is an active, maintainer-labeled feature PR whose remaining gates are contributor-owned real behavior proof and an explicit human security-boundary decision, not a safe automated repair.

Maintainer decision needed

  • Question: Should bundled plugins be allowed to register exact-incarnation grants that authorize selected core session tools across normal session-visibility boundaries for a side-agent integration?
  • Rationale: The patch is intentionally fail-closed and tested, but deciding whether this is an acceptable durable plugin SDK/security boundary is product and ownership judgment rather than a mechanical repair decision.
  • Likely owner: steipete — They introduced the merged generic discussion seam and authored the current implementation that extends the session-visibility boundary.
  • Options:
    • Approve the narrow grant contract (recommended): Approve the exact requester/target/incarnation-scoped model after reviewing real gateway proof, keeping the grant limited to the three stated session-tool actions.
    • Keep discussion channels read-only: Land only the managed-channel and pull-tool portions, deferring side-agent relay until a broader core authorization design is approved.
    • Move authorization behind a different core seam: Pause this implementation and design a core-owned discussion-agent capability instead of plugin-registered scoped access.

Security
Needs attention: No discrete exploit was established, but the PR introduces a new plugin-to-core authorization capability that requires explicit security-boundary ownership approval.

Review details

Best possible solution:

Retain the opt-in ClickClack implementation only after the session-access owner explicitly approves the exact-incarnation grant as a supported boundary, then add redacted real-gateway proof covering open, inbound side-agent routing, a permitted attached-session call, and a revoked or stale binding being blocked.

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

Not applicable: this PR proposes an opt-in capability rather than fixing an established broken behavior. The provided terminal transcript is useful live contract evidence, but it is not a reproduction of a current-main defect.

Is this the best way to solve the issue?

Unclear: the ClickClack provider implementation follows the merged generic discussion seam, but the exact-incarnation plugin-to-core authorization model needs owner confirmation before it can be called the best long-term solution.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 171a3852ba56.

Label changes

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: This is a substantial optional integration with bounded impact, not an active core-runtime emergency.
  • merge-risk: 🚨 compatibility: The PR adds a new opt-in ClickClack configuration surface and a persistent plugin-to-core behavior contract.
  • merge-risk: 🚨 session-state: Bindings are tied to session incarnations and synchronize archive, restore, rename, and deletion lifecycle state.
  • merge-risk: 🚨 security-boundary: A ClickClack plugin registration can grant selected core session tools to an attached side session.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The redacted terminal transcript convincingly exercises the live ClickClack server lifecycle contract, but it does not show the changed OpenClaw gateway behavior—binding creation, inbound side-agent routing, scoped access, and fail-closed revocation—in a real setup. Add redacted gateway output, logs, or a recording; after updating the PR body, a fresh review should run automatically, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +2397, Tests +2727, Docs +190, Generated 0. Total +5314 across 45 files.

View PR surface stats
Area Files Added Removed Net
Source 28 2915 518 +2397
Tests 12 2728 1 +2727
Docs 4 190 0 +190
Config 0 0 0 0
Generated 1 18 18 0
Other 0 0 0 0
Total 45 5851 537 +5314

Security concerns:

  • [medium] Approve the scoped session-access boundary — src/plugin-sdk/session-visibility.ts:35
    registerScopedAccessProvider lets a plugin authorize exact side-session access to core session tools outside normal visibility rules; the implementation is narrowly guarded, but maintaining this as a supported boundary requires an explicit owner decision.
    Confidence: 0.94

What I checked:

  • Merged prerequisite seam: The generic session-discussion provider seam and Control UI panel already merged in the related PR; this branch is the ClickClack-specific implementation rather than a duplicate generic framework. (src/plugins/session-discussion-registry.ts:1, 197c4f5a0423)
  • Security-sensitive core contract: The branch adds a process-wide scoped-access provider facility to the session-visibility layer, allowing a plugin to authorize exact requester/target/action combinations that normal tree visibility would deny. (src/plugin-sdk/session-visibility.ts:35, 77304d5d0883)
  • Incarnation revalidation: The branch wraps scoped history, status, and send operations in admission/revalidation against the expected target session incarnation, which is the principal protection against session-key reuse. (src/agents/tools/scoped-session-access.ts:1, 77304d5d0883)
  • Prior review continuity: The latest completed ClawSweeper cycle reviewed the same head SHA and recorded no remaining line-level findings after earlier lifecycle, routing, and provider-cleanup findings were addressed. (extensions/clickclack/src/discussions/register.ts:1, 77304d5d0883)
  • Real proof is partial: The PR body now contains a redacted live ClickClack managed-channel lifecycle transcript, but it proves the remote HTTP contract rather than a gateway run showing binding, inbound side-agent routing, scoped session-tool access, and fail-closed revocation together. (extensions/clickclack/src/discussions/service.ts:1, 77304d5d0883)

Likely related people:

  • steipete: The related merged work established the plugin-agnostic discussion provider and Control UI surface that this ClickClack implementation extends; the current PR also changes the closely related session-visibility contract. (role: introduced the related generic discussion seam; confidence: high; commits: 197c4f5a0423, 77304d5d0883; files: src/plugins/session-discussion-registry.ts, src/plugin-sdk/session-visibility.ts, extensions/clickclack/src/discussions/register.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.
Review history (4 earlier review cycles)
  • reviewed 2026-07-19T18:40:40.276Z sha 52358dcd0b316c0261f73805894b6392afe03503 :: needs real behavior proof before merge. :: [P2] Hide the discussion tool from unbound sessions
  • reviewed 2026-07-19T20:19:17.312Z sha 84c26f8 :: needs real behavior proof before merge. :: [P2] Hide the discussion tool from unbound sessions | [P1] Do not tear down all discussions during one session cleanup | [P2] Unregister the provider when ClickClack is retired | [P1] Serialize pending-open reconciliation with channel creation | [P1] Keep read-scoped discussion info observational
  • reviewed 2026-07-19T20:35:53.158Z sha 77304d5 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-19T21:18:29.559Z sha 77304d5 :: needs real behavior proof before merge. :: none

@steipete
steipete force-pushed the claude/clickclack-discussions branch from 52358dc to 7028f99 Compare July 19, 2026 19:35

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7028f99aa1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +462 to +466
clearDiscussionBindingGeneration({
runtime: this.#runtime,
sessionKey: pending.sessionKey,
expectedGeneration: pending.generation,
});

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.

P1 Badge Preserve pending reservations during in-flight creates

The periodic pending-open pass runs outside both #withSessionLock and #withChannelMutationLock, while service-open.ts:243-267 records the reservation and then awaits the channel POST. If that POST remains in flight for the 60-second reconciliation interval and the session is reset or discussions are disabled, this path can list before the new channel becomes visible and clear the reservation; if the POST subsequently commits but its response/relist is lost, there is then no binding, channel tombstone, or workspace quarantine, so messages from the orphaned managed channel can fall through to ordinary account routing. Serialize this reconciliation with the corresponding open before clearing its generation.

Useful? React with 👍 / 👎.

Comment on lines +134 to +135
this.#finalizePendingBinding(sessionKey, existing);
await this.#reconcileBinding(sessionKey, existing, resolved.account);

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.

P1 Badge Keep the read-scoped info operation side-effect free

session.discussion.info is explicitly assigned operator.read in src/gateway/methods/core-descriptors.ts:443, and the Control UI probes it automatically, but this call invokes #reconcileBinding, which can PATCH remote channel archive/name/section/link state and mutate or delete the local binding. Thus a client holding only read scope can trigger ClickClack and SQLite writes whenever session metadata or lifecycle state has drifted; move reconciliation to a write-scoped/background path or change the authorization contract.

Useful? React with 👍 / 👎.

Comment on lines +40 to +42
cleanup: () => {
unregisterSessionAccess();
service.cleanup();

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.

P1 Badge Avoid global teardown on ordinary session cleanup

Runtime lifecycle cleanup is invoked for every session reset and delete without a plugin filter (src/gateway/session-reset-service.ts:762-771), so resetting any session calls this callback and globally unregisters ClickClack's scoped session-access provider and stops its reconciliation timer. Subsequent discussion side sessions can no longer access their attached main sessions under the default tree visibility, and existing bindings stop background synchronization until the plugin registry is rebuilt; gate this teardown to plugin-wide disable/restart cleanup rather than session-scoped reasons.

Useful? React with 👍 / 👎.

);
// Registration is process-stable; provider methods read live config so a
// channel hot reload can enable discussions without restarting the gateway.
registerSessionDiscussionProvider(service.provider);

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.

P2 Badge Remove the provider when ClickClack is retired

The provider registry in src/plugins/session-discussion-registry.ts:31-40 is process-global and exposes only registration/get operations, while this lifecycle cleanup removes the access grant and timer but leaves service.provider installed. After an in-process plugin disable or registry replacement where no successor ClickClack registration occurs, session.discussion.info/open therefore continue calling the retired service; if channel configuration still enables discussions, it can keep exposing and mutating ClickClack channels even though the plugin was disabled. Add owner-checked provider unregistration and invoke it from cleanup.

Useful? React with 👍 / 👎.

@steipete steipete self-assigned this Jul 19, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Jul 19, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 84c26f832e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +145 to +146
const { account, runtime, sessionKey, store } = params;
const entry = runtime.agent.session.getSessionEntry({ sessionKey, readConsistency: "latest" });

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.

P1 Badge Canonicalize session keys before storing discussion bindings

When the Control UI opens the default session, it forwards the alias main verbatim (ui/src/pages/chat/chat-pane.ts:2732-2767), and this lookup accepts that alias but continues using it as the binding key. Agent runs subsequently canonicalize the same session to agent:main:main (src/gateway/server-methods/agent-run-handler.ts:315-316), so the main session's discussion tool calls store.get("agent:main:main") and reports no binding; probing or opening with the canonical representation can also create a second managed channel for the same session. Resolve the canonical store key before deriving the external ref and persisting the binding.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 19, 2026
@steipete
steipete merged commit 5420c5c into main Jul 19, 2026
135 of 137 checks passed
@steipete
steipete deleted the claude/clickclack-discussions branch July 19, 2026 21:47
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 20, 2026
…ifecycle sync (openclaw#111503)

* feat(clickclack): add session discussions

* chore: remove release-owned changelog entry

* refactor(clickclack): split discussion service workflows

* fix(clickclack): satisfy plugin surface gates

* fix: narrow routing peer in inbound test and refresh docs map
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…ifecycle sync (openclaw#111503)

* feat(clickclack): add session discussions

* chore: remove release-owned changelog entry

* refactor(clickclack): split discussion service workflows

* fix(clickclack): satisfy plugin surface gates

* fix: narrow routing peer in inbound test and refresh docs map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant