Repository navigation
feat(web): identify the responding agent - #138
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 6:25 PM ET / 22:25 UTC. ClawSweeper reviewWhat this changesThe branch names authenticated agents with unfinished native progress events beside ClickClack’s active channel or thread composer, while retaining a neutral fallback for unresolved senders. Merge readinessThis PR remains necessary: current Priority: P3 Review scores
Verification
How this fits togetherClickClack receives ephemeral flowchart LR
A[Authenticated agent progress event] --> B[Web realtime client]
B --> C[Active unfinished turns]
C --> D[Workspace identity lookup]
D --> E[Named responder status]
E --> F[Channel composer]
E --> G[Thread composer]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the focused responder-identity implementation after confirming its merge view is limited to the named-status, thread-transfer, regression-test, documentation, and required embedded-client changes; preserve the existing generic fallback for unresolved identities. Do we have a high-confidence way to reproduce the issue? Yes. The added focused Playwright path creates two independently authenticated bots that emit concurrent Is this the best way to solve the issue? Yes. Resolving the already authenticated progress sender through the existing workspace identity cache avoids changing the durable event contract and directly addresses the missing user-facing attribution, while the generic fallback preserves useful behavior for unresolved senders. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 961e46f7f2b0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (21 earlier review cycles; latest 8 shown)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 105462b5d9
ℹ️ 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".
| const agent = lookupUser(turn.userId); | ||
| return agent?.display_name?.trim() || (agent?.handle ? `@${agent.handle}` : ""); |
There was a problem hiding this comment.
Resolve agent names from the loaded bot records
For a regular workspace member, moderationMembers is deliberately empty, and lookupUser only searches the current message/reply windows and DM membership. Consequently, when a channel bot starts its first visible turn—or its earlier messages have fallen outside the retained window—the bot cannot be resolved and this feature still displays the generic “Agent is responding…” label, even though botCommands already contains bot IDs and names. Include that loaded bot identity source or provide identity with the progress event.
Useful? React with 👍 / 👎.
| if (agentNames.length > 2) return "Several agents are responding…"; | ||
| return "Agent is responding…"; |
There was a problem hiding this comment.
Clear the live-region label when activity ends
When the final turn is finalized or cleared, agentNames becomes empty and this changes the text from “Name is responding…” back to “Agent is responding…” at the same time active becomes false. The element is only hidden with CSS opacity, so it remains in the accessibility tree and its aria-live="polite" region can announce that an agent is responding after the response has ended. Render an empty label or remove/disable the live region while inactive.
Useful? React with 👍 / 👎.
| agentProgressTurns | ||
| .filter((turn) => turn.lines.some((line) => !line.finalized)) | ||
| .map((turn) => { | ||
| const agent = lookupUser(turn.userId); |
There was a problem hiding this comment.
Namespace turn identities by the responding user
When two bots publish the same client-chosen turn_id, handleAgentProgressEvent finds turns solely by that ID and retains the first turn's userId while merging subsequent frames. This new lookup therefore attributes the second bot's activity to the first bot by name; the API only requires turn_id to be a string and does not make it workspace-global. Key progress turns by both user_id and turn_id before using their identity for the label.
Useful? React with 👍 / 👎.
| $: respondingAgentNames = [ | ||
| ...new Set( | ||
| agentProgressTurns |
There was a problem hiding this comment.
Keep agents with identical display names distinct
When two active bots have the same non-unique display_name, constructing the Set from rendered names collapses them into one entry, so the UI says that a single agent is responding even though two distinct user IDs have live turns. Deduplicate turns by userId first and only then map each distinct agent to its presentation name.
Useful? React with 👍 / 👎.
Closes a cross-workspace authorization gap on bot topic endpoints and adds regression coverage. Co-authored-by: Kushida <kushidashiro@gmail.com>
Fixes right-aligned Markdown lists and blockquotes and adds production-browser regression coverage with isolated appearance state. Co-authored-by: Jacqueline Henriksen <jjjhenriksen@gmail.com>
…aw#113) Adds direct characterization coverage for appearance preference normalization, validation, nil preservation, and empty-patch detection. Co-authored-by: Krasimir Kralev <krasi@idrobots.com>
Refreshes application, build, CI, container, and desktop dependencies; aligns pnpm 11.19.0 across every build path; and regenerates the embedded production bundle on current main.
Expose the existing topic model in the web composer and timeline with resilient filtering, draft recovery, and paginated API support. Co-authored-by: PollyBot13 <pollybot13@gmail.com>
Add one persisted per-channel notification preference across browser, desktop, Pushover, API, and SDK surfaces, with resolved mention metadata and authorized thread-message hydration. Co-authored-by: Jacqueline Henriksen <jjjhenriksen@gmail.com>
Highlight resolved workspace mentions across normal, threaded, embedded, and agent-preamble renderers, with stronger current-user attention governed by the canonical channel notification preference. Co-authored-by: Jacqueline Henriksen <jjjhenriksen@gmail.com>
Add shared durable channel pins across SQLite/PostgreSQL, REST/SDK, realtime, timeline, thread, and channel-wide panel surfaces, preserving topic/mention presentation and a visible 100-pin ceiling. Co-authored-by: Jacqueline Henriksen <jjjhenriksen@gmail.com> Co-authored-by: PollyBot13 <pollybot13@gmail.com>
Resolve authenticated agents through the workspace identity cache, transfer the live status between channel and thread composers, and document workspace-visible attribution.\n\nCo-authored-by: Jacqueline Henriksen <jjjhenriksen@gmail.com>
Regenerate the complete Go-served asset graph for the reviewed responder identity integration.\n\nCo-authored-by: Jacqueline Henriksen <jjjhenriksen@gmail.com>
|
Exact-head maintainer proof for
The PR body now records this current-head proof and retains the earlier contributor screenshots as visual context. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
What changed
agent.progressturns by(user_id, turn_id)so concurrent agents cannot overwrite one anotheraria-liveregion when a thread opensAgent is responding…fallbackWhy
The composer status should answer the practical question users have while an agent is working: who is responding? This keeps the durable event contract unchanged and derives the label from the server-authenticated sender identity already available to the workspace.
Real behavior proof
The exact head
2830914876f5753140c93ef586053ec7c9424ae8was exercised against a locally built ClickClack server with two independently authenticated bots sharing the same turn ID:Blackbird and Nighthawk are responding…Nighthawk is responding…Agent is responding…fallbackThe focused production-browser regression passed:
1 passed (13.4s). Source-blind behavior validation passed every contract clause, including multi-agent collision, thread transfer, partial finalization, clear, and fallback probes.Earlier visual captures from the contributor implementation:
One active agent
Two active agents sharing the same turn ID
Unresolved sender
Validation
pnpm exec playwright test tests/e2e/agent-responding.spec.ts— 1 passedpnpm checkgo test ./apps/api/internal/httpapi -run TestAgentProgressEphemeralAuthz -count=1Related: openclaw/openclaw#116683.
Thanks @jjjhenriksen for the original implementation. AI-assisted maintainer integration and review.