Skip to content

feat: let Knowledge learn from your Gmail through Composio - #207266

Merged
jalehman merged 11 commits into
mainfrom
openclaw/salty-krill-c2b217
Nov 29, 2026
Merged

jalehman merged 11 commits into
mainfrom
openclaw/salty-krill-c2b217

Conversation

@jalehman

@jalehman jalehman commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Knowledge can learn from chat history, Granola meetings, Memory and Slack, but not from email. Email is where a lot of commitments, decisions and introductions actually happen. Today an owner has to repeat them to the agent by hand, or they never reach Knowledge.

User Impact

The Scribes tab gains Learn from Mail. It runs once or on a schedule (weekdays at 8 AM, 12 PM and 4 PM) and has these options:

  • Starting from: the last 7 days (the default), the last 30 days, or today.
  • Also threads you wrote in: on by default.
  • Change… settings, as the other editable scribes have.

It reads Gmail through the Composio CLI, read-only, and picks the threads worth remembering. From those it saves decisions and commitments in both directions (what the owner promised, and who is waiting on whom) and news, keeping the people and project pages current. It never sends, drafts, labels, archives or deletes mail.

Setup on the Gateway host:

  • Install the @composio/composio plugin.
  • Install the Composio CLI.
  • Run composio login and composio link gmail.

The page checks that the Composio plugin is installed and turned on. It can't see the CLI's sign-in or linked accounts. Each run checks those first and stops with a Scribe status: failed line that names what is missing (CLI not installed, signed out, or Gmail not linked).

Why This Change Was Made

Josh decided to build Knowledge scribes for mail, calendar and Drive through Composio, mail first, with a decision model deciding which threads are ingested. gbrain's email-to-brain and open-loop guides inspired the extraction rules. No code was copied from them.

  • Read-only boundary. Gmail is read only through skills/knowledge-source-ingest/scripts/gmail-read.mjs. It allowlists three Composio tools: GMAIL_GET_PROFILE, GMAIL_LIST_THREADS and GMAIL_FETCH_MESSAGE_BY_THREAD_ID. The slugs come from Composio's Gmail toolkit page. The script runs composio with execFile, never a shell, and checks thread IDs before the CLI sees them. The skill tells the agent never to run composio itself.
  • Gate. gmail-normalize.mjs triage applies a deterministic prefilter first. It leaves out mailing lists (List-Unsubscribe, List-Id or bulk Precedence headers), automated senders, calendar notices (found by the iCalendar MIME method, with the subject as a fallback), bulk Gmail categories, and spam or trash. A thread the owner wrote in is always kept. Updates mail is kept too.
  • Decision model. Each kept thread carries a decision_evaluate input (contractVersion 2): a boolean ingest question and a kind choice, over the subject and short excerpts of the newest messages. With no decision model, or an unavailable, error or abstaining answer, the agent applies the same criteria itself.
  • Checkpoint. Knowledge scribe checkpoint · Learn from Mail records each thread's triage outcome with its history ID and a digest of its message IDs. A skipped thread is triaged again only when its messages change.
  • Sources. Each ingested thread is one source, keyed gmail:<address>/<threadId>. It has complete snapshot manifests and keeps its Gmail deep link. Senders and recipients are matched to person pages by email:<address>.

Design choices that differ from the plan in the epic:

  • Snapshots are complete, not partial as in Slack, because each run reads the whole thread.
  • The decision state is JSON per thread, not a single list batch. A boolean answer would cover the whole list rather than each item, so a batch can't give one answer per thread. GPT-6 Luna, the decision model used for the live check below, also rejects list state as unsupported input.
  • Each scheduled run ingests 10 threads and triages at most 80.

Evidence

  • Tests. Focused Vitest passed on Crabbox AWS (run run_d375c9f0db957cc4065d3ec60b2d7f71 and earlier runs) for gmail-scripts, scribe-mail-fields, scribes-state, scribes-view, scribe-slack-fields, skill-packaging and slack-read-normalize. The last full run passed 68 of 68.

    • The Gmail reader is tested against a stand-in composio binary. The test checks that only the three read slugs ever reach the CLI, and covers pagination of thread lists and of long threads, invalid thread IDs, and each failure class.
    • The normalizer tests cover the prefilter cases, HTML and plain-text quoted replies, calendar MIME parts, digests that don't change with labels, and hashes that stay the same across reads. They also run the output through chat-transcript.mjs and source-manifest.mjs.
  • Checks. Typecheck for tsconfig.extensions.json and the extension tests, oxlint on extensions/knowledge, and format all pass on the final head.

  • Inherited failures. CI Planner Benchmark's validate job fails its unused-file scan on scripts/e2e/lib/upgrade-survivor/system-event-account.mjs, which this branch doesn't touch and nothing on main references. Locally, check:changed's dead-export scan also flags three exports this branch doesn't touch (src/agents/command/types.ts: AgentCommandPluginIngressOpts, src/plugins/native-module-require.ts: clearNativeRepositorySourceModulesForTest, src/gateway/server-methods/update.test-harness.ts: resolveUpdateInstallSurfaceMock). The earlier doctor-deprecation failure came from main and is gone after rebasing onto chore(doctor): hold expired doctor migrations as removal-pending #207865.

  • Test lines. The scribe adds 662 net test lines against the 400 allowance; config/test-lines-allocations/knowledge-mail-scribe.txt records the other 262 (the reader against a stand-in Composio CLI, the normalizer and the Mail dialog fields).

  • CI fix. CI runs gmail-scripts.test.ts under Bun, and the test PATH holds only the test runtime's directory, so the stand-in Composio CLI's #!/usr/bin/env node shebang found no node and every read failed as signed-out. The stand-in now runs from composio.cjs behind a sh wrapper that execs process.execPath. Reproduced under Bun with node absent from PATH: the old shebang fails as signed-out, the wrapper reads.

  • Live decision model triage. The scribe's rubric was run unchanged through decision_evaluate against clawrouter/openai/gpt-6-luna on eight synthetic Gmail threads. Six were built as saved Gmail threads, run through gmail-normalize.mjs triage, and evaluated with the rubric it emits. Two more checked borderline cases. Every call returned status: ok. The run marks a thread for ingestion when probabilityTrue is at least 0.5.

    Thread Prefilter P(ingest) Kind
    Personal request (introduction ask) kept 0.97 relationship (0.55; commitment 0.44)
    Commitment (contract by Friday, owner replied) kept 1.00 commitment (0.99)
    Lyft receipt kept 0.00 routine (1.00)
    Newsletter list-mail 0.00 routine (1.00)
    GitHub CI failure automated-sender 0.06 routine (0.96)
    Calendar invite calendar-notice 0.25 scheduling (0.93)
    Coffee time proposed by a person (borderline) 0.84 scheduling (0.94)
    Thank-you note (borderline) 0.04 relationship (0.59)

    The split is clean: every thread to keep scored 0.84 or above, and every routine thread scored 0.25 or below. The rubric was not changed. For prefiltered threads the rubric was run on the same state shape to check it. A real run never sends those threads to the model.

    The coffee scheduling thread counts as ingest because the rubric treats an open request to the owner as someone waiting on them. The receipt passes the prefilter because its sender (receipts@) is not an automated local part, so the model is what keeps it out.

  • Live Gmail runs. Two scheduled-run equivalents ran on the owner's Gateway (openclaw-fsn1) against a real Gmail account, through Composio CLI 0.6.4:

    • First run: 80 threads triaged, 3 ingested. It found that the CLI saves a large answer to a local file and prints only storedInFile: true and outputFilePath. The reader treated those 11 threads as having no messages.
    • Fix: gmail-read.mjs now reads the whole answer from that file, then removes the file and its folder. The new test case fails on the old reader and passes with the fix. A live re-read of a thread that had come back empty returned all 6 messages and left no saved file behind.
    • Second run (fixed build): 18 threads triaged, 6 ingested, every fetched thread read with its messages.
    • Decision model: GPT-6 Luna through ClawRouter was overloaded for 10 of 14 and then 4 of 18 threads. Those were decided by the scribe's own model with the same rubric, as designed.
  • Run hygiene. The live runs left their working copies of mail in /tmp and the workspace. Each run now works in a private mktemp -d folder, so its thread files land there, and removes it with rm -rf when the run ends. gmail-read.mjs points the CLI's COMPOSIO_RUN_OUTPUT_DIR and COMPOSIO_SESSION_DIR at .composio in that folder; by default they sit in the system temporary folder whatever the working folder is. An answer an interrupted read left behind is removed with the run folder.

  • Rebase. Rebased onto current main, which moved scribe page text into i18n/locales/en-scribes.ts and renamed conversations to sessions and chat history. The Mail catalog text and the "plugin on" and run-checks lines now live in the locale strings. Focused Vitest (gmail-scripts, scribe-mail-fields, scribe-slack-fields, scribes-state, scribes-view and skill-packaging; 72 tests) passes on the rebased head.

  • Review. An independent review found one P1 and three P2 issues, all fixed and covered by tests:

    • Long threads now read every page before the thread file is written.
    • The check for unchanged threads uses a digest of message IDs instead of the newest message ID, so deleted messages are caught.
    • HTML <blockquote> replies are now treated as quoted text.
    • The calendar check now reads each MIME part's own headers.

🦞 Made with OpenClaw

@clawsweeper

clawsweeper Bot commented Nov 28, 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 plugin: knowledge size: XL labels Nov 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:auth-provider Auth, provider routing, model choice, or SecretRef resolution may break. impact:session-state Session, memory, transcript, context, or agent state can drift or corrupt. clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Adds a Knowledge Mail scribe that reads Gmail through Composio and saves selected threads once or on a schedule.

Example: Ann emails [email protected] asking for a signed contract, and the owner promises to send it Thursday.

  • Before: The owner must manually bring the email conversation into Knowledge.
  • After: Learn from Mail can ingest the thread and record the commitment with its Gmail source.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The feature fits existing owners, but concrete integration defects and absent production-behavior proof prevent a pass.
Proof confidence 🧂 unranked krab (1/6) Supplied validation exercises the new scripts with a stand-in Composio binary and the UI with Gateway fixtures; the author explicitly reports no linked-Gmail or real decision-model run, leaving the production integration and visual behavior unproven.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

The scores reflect the reviewer's assessment. Real behavior proof is not required for maintainer- or bot-authored pull requests.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Email commitments and decisions require manual transfer into Knowledge.
Reason: The owner-directed Mail capability extends the established plugin-local scribe workflow without adding a competing scheduler or knowledge store.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep this PR open: the Mail scribe is a useful addition, but the Composio response adapter and deletion reconciliation need repair before merge.

Reviewed head: c9495eade5bf67cd49e9943f5614e3bd852c7219

Before merge

  • [P1] Resolve Composio's stored response before reading Gmail data (P1) - A Gmail thread whose serialized response exceeds 40,000 bytes reaches Composio's file-output path. The current CLI returns a successful summary containing storedInFile: true and outputFilePath, without data or data_preview (verified in ComposioHQ/composio at 0338b1b07109e38f41cbfb75608628ea195a2c9e). This code returns that summary as the tool data, so fetchThreads writes it with messages: []; normalization then fails because the summary has no Gmail thread identity. An ordinary long or HTML-heavy thread therefore stops ingestion despite a successful Gmail read. Load and unwrap the CLI's stored response before consuming its messages, and cover that real output variant.
  • [P2] Preserve prior coverage when a thread's earliest message disappears (P2) - Starting each complete snapshot at the first remaining message loses deletion evidence. For example, ingest a thread containing messages dated November 20 and 21, then delete the November 20 message and receive another reply so the thread is fetched again. The instructed coverage now starts November 21. source-manifest.mjs skips missing prior items older than current.coverage.start, so the November 20 message appears in neither deleted nor unresolved_missing, even though the whole thread was read. Keep the earliest previously observed coverage boundary when constructing subsequent complete thread snapshots and verify this case through the existing planner.
  • [P2] Cite the recorded decision behind the Mail scribe rules (P2) - The new Mail procedure introduces persistent agent instructions but gives no issue, PR, or commit citation for their governing decision. Root AGENTS.md explicitly requires new skill and prompt rules to cite an incident, and the adjacent Slack procedure follows that contract. Link the relevant recorded decision in this introduction so the unattended rules have traceable provenance.

Findings

  • [P1] [P1] Resolve Composio's stored response before reading Gmail data — extensions/knowledge/skills/knowledge-source-ingest/scripts/gmail-read.mjs:110-114
  • [P2] [P2] Preserve prior coverage when a thread's earliest message disappears — extensions/knowledge/skills/knowledge-source-ingest/references/scribe-runs.md:204-208
  • [P2] [P2] Cite the recorded decision behind the Mail scribe rules — extensions/knowledge/skills/knowledge-source-ingest/references/scribe-runs.md:130-132
Agent review details

How this fits together

The Knowledge Scribes UI creates agent conversations and automations; the new ingestion skill reads Gmail through the Composio CLI, requests triage decisions, and publishes Knowledge sources, claims, and checkpoint notes.

flowchart LR
  A[Scribes UI] --> B[Agent conversation or automation]
  B --> C[Mail ingestion skill]
  C --> D[Composio CLI]
  D --> E[Gmail]
  C --> F[Decision model]
  C --> G[Knowledge sources and checkpoints]
Loading

Technical review

Best possible solution:

Keep the existing scribe architecture, resolve Composio's stored response files, and preserve historical snapshot coverage when reconciling whole threads.

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

Source inspection establishes the large-response and shrinking-coverage failures, but no product execution was performed under this read-only review.

Is this the best way to solve the issue?

Reusing the existing catalog, automation, settings, and manifest owners is appropriate; the reader must consume the real CLI contract and complete snapshots must retain coverage of previously observed messages.

Full review comments:

  • [P1] [P1] Resolve Composio's stored response before reading Gmail data — extensions/knowledge/skills/knowledge-source-ingest/scripts/gmail-read.mjs:110-114
    A Gmail thread whose serialized response exceeds 40,000 bytes reaches Composio's file-output path. The current CLI returns a successful summary containing storedInFile: true and outputFilePath, without data or data_preview (verified in ComposioHQ/composio at 0338b1b07109e38f41cbfb75608628ea195a2c9e). This code returns that summary as the tool data, so fetchThreads writes it with messages: []; normalization then fails because the summary has no Gmail thread identity. An ordinary long or HTML-heavy thread therefore stops ingestion despite a successful Gmail read. Load and unwrap the CLI's stored response before consuming its messages, and cover that real output variant.
    Confidence: 0.99
  • [P2] [P2] Preserve prior coverage when a thread's earliest message disappears — extensions/knowledge/skills/knowledge-source-ingest/references/scribe-runs.md:204-208
    Starting each complete snapshot at the first remaining message loses deletion evidence. For example, ingest a thread containing messages dated November 20 and 21, then delete the November 20 message and receive another reply so the thread is fetched again. The instructed coverage now starts November 21. source-manifest.mjs skips missing prior items older than current.coverage.start, so the November 20 message appears in neither deleted nor unresolved_missing, even though the whole thread was read. Keep the earliest previously observed coverage boundary when constructing subsequent complete thread snapshots and verify this case through the existing planner.
    Confidence: 0.98
  • [P2] [P2] Cite the recorded decision behind the Mail scribe rules — extensions/knowledge/skills/knowledge-source-ingest/references/scribe-runs.md:130-132
    The new Mail procedure introduces persistent agent instructions but gives no issue, PR, or commit citation for their governing decision. Root AGENTS.md explicitly requires new skill and prompt rules to cite an incident, and the adjacent Slack procedure follows that contract. Link the relevant recorded decision in this introduction so the unattended rules have traceable provenance.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test extensions/knowledge/src/gmail-scripts.test.ts extensions/knowledge/src/source-manifest.test.ts --maxWorkers=1
  • pnpm test extensions/knowledge/src/scribe-mail-fields.test.ts extensions/knowledge/src/scribes-state.test.ts extensions/knowledge/src/skill-packaging.test.ts --maxWorkers=1
  • pnpm tsgo:extensions
  • pnpm tsgo:extensions:test
  • git diff --check

What I checked:

Likely related people:

  • Josh Lehman: Raw commit f69f246 adds extensions/knowledge/src/scribes-catalog.ts:62 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f69f246dba1f; files: extensions/knowledge/src/scribes-catalog.ts)

PR surface

Source +1031, Tests +634, Docs +197, Other +3. Total +1865 across 15 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 7 1039 8 +1031
Tests 4 640 6 +634
Docs 3 206 9 +197
Config 0 0 0 0
Generated 0 0 0 0
Other 1 5 2 +3
Total 15 1890 25 +1865

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
New Mail source settings 2 settings Adds a three-choice starting window and a sent-mail toggle, defaulting to 7 days and enabled; these apply to the new scribe.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 28, 2026, 12:47 AM ET / 05:47 UTC.

@jalehman
jalehman force-pushed the openclaw/salty-krill-c2b217 branch from fdd1dc8 to 88a3ed4 Compare November 29, 2026 00:29
@jalehman
jalehman marked this pull request as ready for review November 29, 2026 00:29
@jalehman
jalehman enabled auto-merge (squash) November 29, 2026 00:37
@jalehman
jalehman force-pushed the openclaw/salty-krill-c2b217 branch from 783e2be to b793b93 Compare November 29, 2026 01:07
OpenClaw-Publication: c853f838-3413-89f0-a2e4-ed76001d773e
Composio CLI 0.6.x saves a large tool answer to a local file and prints only storedInFile and outputFilePath. The Gmail reader now reads the whole answer from that file and then removes the file and its folder, which hold the owner's mail. Before, those threads came back with no messages.
Each run now works in a private mktemp folder, so its thread files and the Composio CLI's saved answers land there, and removes it with rm -rf when the run ends. Live runs had left copies of mail in /tmp and the workspace.
…ocale strings

Rebased onto main, where scribe titles, blurbs and labels and the plugin readiness lines moved into i18n/locales/en-scribes.ts.
…n folder

The CLI saves large answers under COMPOSIO_RUN_OUTPUT_DIR and COMPOSIO_SESSION_DIR, which default to the system temporary folder, not the working folder. gmail-read.mjs now points both at .composio in the working folder, so removing the run folder also removes an answer an interrupted read left behind.
…and allocate the Mail scribe test lines

CI runs this suite under Bun, whose directory is the only runtime on the test PATH, so the stand-in CLI's #!/usr/bin/env node shebang found no node and every read failed as signed-out. The stand-in now lives in composio.cjs behind a sh wrapper that execs process.execPath. The Mail scribe adds 658 test lines against the 400 allowance; the allocation records the other 258.
The Bun-safe stand-in CLI wrapper added 4 lines, so the scribe now adds 662 net test lines against the 400 allowance.
@jalehman
jalehman force-pushed the openclaw/salty-krill-c2b217 branch from 207cea5 to 2abe1a2 Compare November 29, 2026 01:34
@jalehman
jalehman merged commit 53d6827 into main Nov 29, 2026
112 of 113 checks passed
@jalehman
jalehman deleted the openclaw/salty-krill-c2b217 branch November 29, 2026 01:47
vincentkoc added a commit that referenced this pull request Nov 29, 2026
…line

* commit '652611b9d924c754ac7a18d0081cce6e1ec765df': (527 commits)
  refactor(infra): simplify audit recovery write progress (#157141)
  fix: show restart blockers in service logs (#207879)
  test(infra): exercise group identity in session roundtrip (#207671)
  test(infra): exercise live owner expiry policy (#207672)
  feat: let Knowledge learn from your Gmail through Composio (#207266)
  test: stop the history-worker overload test from failing CI on slow runners (#207862)
  test(auth): assert SecretRef plaintext is absent from storage (#207698)
  chore(doctor): hold expired doctor migrations as removal-pending (#207865)
  fix: show ended one-time automations in History (#201280)
  chore(release): update appcast for 2026.11.11 (#207504)
  fix: let updates back up deeply nested databases (#207756)
  fix(telegram): stop resending earlier messages to the model on every turn in DM topics (#207684)
  feat(workboard): choose which sessions appear on a board (#207781)
  fix: acknowledge updates when the Gateway first becomes ready (#207819)
  chore: stop the cron recovery test from failing CI on slow runners (#207837)
  fix: queue follow-ups when session creation reuses an active chat (#207800)
  feat(clawrouter): consume qualified native memory embeddings (#191874)
  fix: save the account for main-session prompts and converted reminders (#207776)
  test(infra): measure worker Buffer storage directly (#207663)
  feat(workboard): hide sessions and filter subagents per board (#207744)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
…line

* commit 'c876514dc21154a07f3755320495d2a93584b46b': (538 commits)
  perf(agents): reuse prepared tool catalog executors (#207900)
  fix: show the Gateway command default beside host rules in Devices (#207887)
  fix: verify chat Stop recovery after dashboard pairing (#207888)
  test(activity): check midnight refresh against the elapsed window (#207859)
  test(ui): use one persisted message ID in queued-image handoff (#207861)
  test(agents): release configured MCP fixture resources (#207716)
  fix(workboard): clear CI failures in the session filter editor (#207858)
  perf(ai): reduce allocation in OpenAI Responses streams (#207889)
  chore: stop the Workboard resident-owner CLI test from failing on main (#207898)
  test(agents): isolate endpoint-based overflow classification (#207688)
  chore(doctor): record why the root defaultModel migration stays (#207890)
  refactor(infra): simplify audit recovery write progress (#157141)
  fix: show restart blockers in service logs (#207879)
  test(infra): exercise group identity in session roundtrip (#207671)
  test(infra): exercise live owner expiry policy (#207672)
  feat: let Knowledge learn from your Gmail through Composio (#207266)
  test: stop the history-worker overload test from failing CI on slow runners (#207862)
  test(auth): assert SecretRef plaintext is absent from storage (#207698)
  chore(doctor): hold expired doctor migrations as removal-pending (#207865)
  fix: show ended one-time automations in History (#201280)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit '2194d14488091e2047d2f87ebbb093212f30840e': (540 commits)
  fix: stop reporting a child worker as finished when the Gateway loses contact (#207713)
  fix: keep the Activity visibility test stable at midnight (#207847)
  perf(agents): reuse prepared tool catalog executors (#207900)
  fix: show the Gateway command default beside host rules in Devices (#207887)
  fix: verify chat Stop recovery after dashboard pairing (#207888)
  test(activity): check midnight refresh against the elapsed window (#207859)
  test(ui): use one persisted message ID in queued-image handoff (#207861)
  test(agents): release configured MCP fixture resources (#207716)
  fix(workboard): clear CI failures in the session filter editor (#207858)
  perf(ai): reduce allocation in OpenAI Responses streams (#207889)
  chore: stop the Workboard resident-owner CLI test from failing on main (#207898)
  test(agents): isolate endpoint-based overflow classification (#207688)
  chore(doctor): record why the root defaultModel migration stays (#207890)
  refactor(infra): simplify audit recovery write progress (#157141)
  fix: show restart blockers in service logs (#207879)
  test(infra): exercise group identity in session roundtrip (#207671)
  test(infra): exercise live owner expiry policy (#207672)
  feat: let Knowledge learn from your Gmail through Composio (#207266)
  test: stop the history-worker overload test from failing CI on slow runners (#207862)
  test(auth): assert SecretRef plaintext is absent from storage (#207698)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…207266)

* feat(knowledge): add the Learn from Mail scribe

* fix(knowledge): read whole Gmail threads, keep HTML quotes out and detect calendar parts

* chore(knowledge): format and lint the Learn from Mail scribe

* test(knowledge): type the Gmail reader slug check

* feat: let Knowledge learn from your Gmail through Composio

OpenClaw-Publication: c853f838-3413-89f0-a2e4-ed76001d773e

* fix(knowledge): read Gmail answers the Composio CLI saves to a file

Composio CLI 0.6.x saves a large tool answer to a local file and prints only storedInFile and outputFilePath. The Gmail reader now reads the whole answer from that file and then removes the file and its folder, which hold the owner's mail. Before, those threads came back with no messages.

* fix(knowledge): Learn from Mail runs remove their working copies of mail

Each run now works in a private mktemp folder, so its thread files and the Composio CLI's saved answers land there, and removes it with rm -rf when the run ends. Live runs had left copies of mail in /tmp and the workspace.

* refactor(knowledge): move Learn from Mail page text into the scribe locale strings

Rebased onto main, where scribe titles, blurbs and labels and the plugin readiness lines moved into i18n/locales/en-scribes.ts.

* fix(knowledge): keep the Composio CLI's saved Gmail answers in the run folder

The CLI saves large answers under COMPOSIO_RUN_OUTPUT_DIR and COMPOSIO_SESSION_DIR, which default to the system temporary folder, not the working folder. gmail-read.mjs now points both at .composio in the working folder, so removing the run folder also removes an answer an interrupted read left behind.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation impact:auth-provider Auth, provider routing, model choice, or SecretRef resolution may break. impact:session-state Session, memory, transcript, context, or agent state can drift or corrupt. P2 Normal backlog priority with limited blast radius. plugin: knowledge rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant