Repository navigation
feat(googlechat): edit previously sent text messages - #149241
zhangguiping-xydt wants to merge 6 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR exposes text editing of app-authored Google Chat messages through the existing message tool and CLI. Example: Replace “Deploy starts at 14:00” in spaces/AAQA1bC2dEf/messages/proof-1 with “Deploy starts at 15:00”.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain This PR adds a coherent plugin capability absent from current main; no introduced correctness or security defect was found, and feature acceptance remains a maintainer decision. Priority: P3 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherCore authorizes message actions; the Google Chat plugin resolves the account and conversation, then sends the update through its existing OAuth and guarded HTTP transport. flowchart LR
A[Message tool or CLI] --> B[Core action authorization]
B --> C[Google Chat action adapter]
C --> D[Account and target resolution]
D --> E[Guarded update helper]
E --> F[Google Chat API]
F --> G[Action result]
Technical reviewBest possible solution: If accepted, expose editing through the existing plugin action adapter and guarded PATCH helper while preserving account, conversation, and final-request authorization. Do we have a high-confidence way to reproduce the issue? Current-main source confirms explicit editing is unavailable; this is a feature request rather than a failure of an existing supported contract. Is this the best way to solve the issue? The production change is appropriately narrow: it reuses shared action authorization, plugin account and target resolution, and the existing update helper without adding configuration or competing state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 22e493ef22b4. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +43, Tests +593, Docs +5, Other +1. Total +642 across 12 files. Added test files: 1. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (5 earlier review cycles)
Reviewed November 3, 2026, 4:29 PM ET / 21:29 UTC (Revision 6). |
87a2d62 to
eefb1f4
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Related: #149091
What Problem This Solves
Google Chat users cannot correct an app's sent text through OpenClaw's message tool or CLI, although the plugin already updates its typing placeholders.
User Impact
Users can explicitly replace text using the full message resource name and its same case-sensitive target space. The selected app's permissions still apply; provider errors do not send a replacement message. This is an optional plugin feature requiring maintainer acceptance. Live Google tenant permissions and ownership remain unverified.
Why This Change Was Made
Reuse the existing text-only PATCH helper and shared action authorization. Existing request guards survive target lookup, OAuth acquisition and each final HTTP attempt; the existing mutation callback runs at dispatch. Typing and approval updates retain their optional hooks. No new configuration, SDK capability, dependency, OAuth scope, schema or retention policy is added.
The conflict integration preserves main's remote-attachment links and local-file rejection. Discovery remains read-only and selected-account aware.
Evidence
Current head:
5a89d175209f581c67d81b3ce5722965cfda7048, integrated with pinned main0fbc13eaacb9e8976d071e2f09bcd0b5a1a95966. Complete 12-path full-index diff SHA256:7be53c8cfcf58ec8cdb83e92b8f8e6c4a5191f6216f883d82d7423451489fcfd.Sanitized current-head runtime result:
The PATCH contains only text and its update mask. Synthetic readback preserves fixture cards/attachments; this is not proof of Google's actual preservation behavior. The existing transport suite separately covers awaited OAuth/DM/callback/redirect revocation.
Independent final complete 12-path implementation/owner/consumer review passed with no unresolved implementation findings, bound to the exact base/head/diff above. The reviewer independently checked the raw runtime and static evidence; the review does not establish live-tenant proof, feature acceptance or hosted maintainer readiness. Current-head CI remains separate; see this PR's Checks tab.
Earlier failures remain failures: initial formatting and local no-shadow were repaired; a precommit line-cap invocation compared incoming main through the old merge-base, then passed against the final committed parent. Runtime attempt 1 stopped on a proof-script Python module shadow and observed managed-proxy SIGTERM exit 143. Attempt 2 had the wrong expected disabled-account error; attempt 3 completed business cases but rejected unrelated ClawHub traffic. The successful fresh-state run uses documented host stdin lifeline EOF and an explicit optional ClawHub TLS fixture returning real HTTP 503. Unknown destinations and Google failures remain fatal; no production code or authority check was weakened for proof.
Limits: no live Google tenant/IAM/app-ownership, Google-side non-text preservation, real inference, stable-release upgrade, default Tool Search catalog, public Stop runtime or SIGTERM exit-zero claim. Tool Search is explicitly disabled; unrelated startup update/model catalog discovery is disabled through supported config. The optional ClawHub catalog is offline in this proof. Historical prior-head tests/runtime remain historical. Feature acceptance remains a maintainer decision; this reference does not close the issue.