Repository navigation
feat(transcripts): browse and export saved meeting archives - #139875
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: blocked before merge. Reviewed September 6, 2026, 7:04 AM ET / 11:04 UTC. ClawSweeper reviewWhat this changesAdds searchable, paginated meeting archives, bounded downloads, capture status, plugin setup metadata, and title updates that preserve ongoing captures. Merge readiness⛔ Blocked before merge - 4 items remain This remains useful, distinct work beyond the merged capture prerequisites. No blocking introduced defect was found; the documented archive-access restriction is intentional, and the previous review contains no unresolved code findings. Priority: P2 Review scores
Verification
How this fits togetherMeeting captures are stored in OpenClaw's shared SQLite database. The Gateway archive reader turns those records and capture-lifecycle facts into authorized client responses and downloadable transcripts. flowchart TD
A[Meeting capture providers] --> B[Shared SQLite archive]
C[Gateway client request] --> D[Operator access check]
D --> E[Archive reader]
B --> E
F[Capture and plugin snapshots] --> E
E --> G[Pages and capture status]
E --> H[Markdown or JSONL download]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1426, Tests +4992, Docs +95, Other +155. Total +6668 across 54 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one canonical archive reader with the demonstrated legacy compatibility path, documented shared-archive permissions, and bounded modern responses. Do we have a high-confidence way to reproduce the issue? Not applicable as a single bug reproduction: this is an archive feature expansion, and current-main source confirms the missing RPC capabilities. Is this the best way to solve the issue? Yes. Extending the existing SQLite owner with shared public projections avoids competing storage, while separate legacy reads preserve the named compatibility contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1bdb963df1d6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
30a4891 to
8b9efd8
Compare
8b9efd8 to
168e608
Compare
Add bounded archive search, paging, exports, and capture status over the existing SQLite records. Preserve canonical stored Markdown, public projection privacy, shared-archive access control, and original capture ownership during title edits. Only complete plugin metadata can establish that a source is unavailable. Compare stored dates by instant without rewriting their identity. Select bounded page keys before projecting notes and participants. Keep storage admission, schema, indexes, and current occupied-source ID behavior intact. Related: #130860 Builds on #139572 and #139658.
Preserve v2026.9.2 requests without paging arguments as the recent 2,000-row window, with UTF-16 clipping and the historical transport ceiling. Keep modern pages and downloads on their separate byte bounds. Map stored speaker IDs and labels independently through the public read projection without parsing provider-only utterance metadata.
Run native timezone coverage in a process started with the requested zone. Keep hello lifecycle coverage on its supplied method list and move the Gateway/Discord integration proof to the root E2E owner without changing its assertions or resolved import targets.
Preserve the full v2026.9.2 catalog prefix and every named descriptor while letting later main method additions merge independently.
168e608 to
1db5b20
Compare
|
Merged via squash.
|
* commit '3ed964c8ca6206d26ecc0b6567ccd1389d9948fc': (36 commits) refactor(plugins): unify install config snapshot preparation (openclaw#140081) fix: cloud provisioning stays failed after temporary storage recovers (openclaw#140021) fix(ci): preflight job outputs exceed 1 MiB on full-plan pull requests (openclaw#140018) refactor: consolidate command and provider helpers (openclaw#140072) fix(doctor): replace unavailable TUI cleanup advice (openclaw#140074) fix(plugins): avoid scoped pack failures and missing runtime entries (openclaw#140016) fix: clarify background command timeouts (openclaw#140022) fix(workboard): refresh board navigation while retaining drafts (openclaw#139952) fix: preserve newer chat drafts when rewind completes (openclaw#140066) feat(transcripts): browse and export saved meeting archives (openclaw#139875) fix(cron): complete timeout test observation phase (openclaw#140076) fix(macos): show the full automation count (openclaw#139692) fix: native worker turns fail to load WebSocket transport (openclaw#140071) fix(cli): complete quoted Bash option values (openclaw#140034) fix(chat): show command instructions while pending (openclaw#140041) refactor(cli): use canonical resume result schema (openclaw#140056) fix: restore package acceptance across install runtimes (openclaw#140062) refactor(auto-reply): keep model-selection fixtures in tests (openclaw#140069) fix(plugins): remove owned aliases before uninstalling files (openclaw#140065) fix: completed replies hang when context-engine cleanup stalls (openclaw#140023) ...
Supply a small method list to the handler and assert it in both original and renewed hellos. Keep full advertised method inventory coverage in the existing dedicated test, avoiding unrelated RPC additions in these three Serve withdrawal cases. Related to openclaw#130860 and openclaw#139875.
…#139875) * feat(transcripts): browse and export saved meeting archives Add bounded archive search, paging, exports, and capture status over the existing SQLite records. Preserve canonical stored Markdown, public projection privacy, shared-archive access control, and original capture ownership during title edits. Only complete plugin metadata can establish that a source is unavailable. Compare stored dates by instant without rewriting their identity. Select bounded page keys before projecting notes and participants. Keep storage admission, schema, indexes, and current occupied-source ID behavior intact. Related: openclaw#130860 Builds on openclaw#139572 and openclaw#139658. * refactor(transcripts): distinguish stored and public notes readers * fix(transcripts): preserve legacy archive reads and speaker identities Preserve v2026.9.2 requests without paging arguments as the recent 2,000-row window, with UTF-16 clipping and the historical transport ceiling. Keep modern pages and downloads on their separate byte bounds. Map stored speaker IDs and labels independently through the public read projection without parsing provider-only utterance metadata. * test(transcripts): isolate timezone and cross-plugin E2E fixtures Run native timezone coverage in a process started with the requested zone. Keep hello lifecycle coverage on its supplied method list and move the Gateway/Discord integration proof to the root E2E owner without changing its assertions or resolved import targets. * test(transcripts): include archive methods in current inventory * refactor(transcripts): anchor methods after shipped catalog Preserve the full v2026.9.2 catalog prefix and every named descriptor while letting later main method additions merge independently.
Related: #130860
Builds on #139572 and #139658.
What Problem This Solves
Gateway clients can read recent meeting notes, but cannot page through a large archive, search saved utterances, download a public transcript projection, or reliably distinguish configured capture from a registered subscription. Large stored payloads also need bounds before entering the new archive reader.
Why This Change Was Made
Add one archive read layer over the existing SQLite records, with authorization before access, filter-bound cursors, complete paginated utterance text, and bounded Markdown/JSONL exports. Public projections omit provider-private metadata, URL credentials, and filesystem paths. Stored speaker IDs and labels are mapped independently, including rows with an ID and no display name. Agent reads release SQLite cursors before awaited source authorization and retain exact tuple selection across that boundary.
Sort stored dates by instant while preserving original identities and selectors. This fixes offset timestamps being misplaced or excluded from date ranges. Unknown dates sort last; equal instants use session ID and original timestamp as stable ties. Selection scans candidate keys, then projects only the requested page plus one lookahead row. Storage admission, schema, indexes, writes, and current occupied-source ID behavior remain unchanged.
Preserve the published
v2026.9.2transcripts.getcontract: withoutlimit,cursor, orquery, callers still receive the latest 2,000 utterances in chronological order, with sanitized text clipped to 4,000 UTF-16 units and the existing 25 MiB client transport ceiling. This named compatibility path retains historical raw-row reading behavior before projection; it does not impose the new 1 MiB page cap on formerly valid legacy responses. An explicit paging/search argument selects modern pages. Generic store page calls retain their modern defaults, and both request shapes use the same access checks and public allowlist.Capture status reads lifecycle and prepared plugin metadata snapshots without loading providers or probing audio. Only a complete metadata inventory can establish that a provider is absent. Manifest descriptors advertise supported auto-start locator fields. Title-only configuration changes update future titles without interrupting an admitted capture or changing its routing authority. Lightweight config types are separate from runtime reload helpers to avoid import cycles.
The fixed-ID origin/day policy remains deferred on #130860; the separate UI slice exposes browsing and setup controls.
User Impact
Authorized clients can search and page through meeting history, search a saved transcript, and download up to 4 MiB without receiving a partial file. Modern page, list, and status results are bounded to 1 MiB and report actionable errors. Markdown preserves canonical saved notes and appends complete durable speech; legacy JSON-only notes retain their existing rendering. Existing unpaged clients keep their recent-window behavior; clients can adopt full-text pages by sending an explicit
limitand followingnextCursor.Restricted operator profiles cannot obtain shared archive data by selecting an agent filter. Status distinguishes registered subscriptions from inactive or uncertain configuration matches, with bounded startup diagnostics, durable counts, and source timestamps. Existing notes retain their title, source, agent, and selector through title-only configuration edits.
Evidence
Final focused proof passed 61 tests across library, Gateway, agent-read, and wire-schema owners. Native SQLite regressions cover stored-offset chronology, stable cursor ties and unknown dates, pre-JavaScript page bounds, iterator cleanup, public projections, and nullable speaker labels. The ID-only speaker regression failed before the flat-row projection repair.
The existing 2,001-utterance Gateway fixture proves the legacy latest-2,000 window, clipping across a surrogate pair, omitted legacy utterance IDs, a response above 1 MiB, explicit-limit full traversal, query-only paging, and cursor-only continuation. The response schema accepts 2,000 legacy rows while explicit request limits remain capped at 100.
Old-head/new-source probes demonstrate failure-before/fix-after for legacy raw speech above 25 MiB clipping to a small public response, legacy notes above 1 MiB, and the projected 25 MiB ceiling. Modern reads still reject oversized raw public fields before JavaScript. The released handler, tail reader, response schema, and GatewayClient WebSocket limit were inspected in the published stable tag.
Actual Kysely-compiled queries over 100,000 synthetic captures, each with notes and an utterance, project exactly 51 captures for 50-item first-page, range, cursor, combined range/cursor, and offset reads. Instrumented replay returns identical rows and touches only those notes. Chronology SQL and bound parameters remain byte-identical after the compatibility repair; scan cost remains proportional to candidate count.
Metadata/manifest/wire checks passed 133 cases; config-write/reload/startup checks passed 148 cases. After the config helper split, 79 config/status tests and a full build passed. Protocol generation, Swift checks, Kotlin generation, and the protocol-since guard pass; compatibility changes leave generated native models unchanged.
Final combined real Gateway/SQLite/Chromium proof passed on production commit
147b19375d2e8eecd8644ff467f289b65d83c120, with all 46 dependency hashes verified. It covered native agent/tool/capture ownership, a 2,000-row legacy response of 8,293,490 bytes, full-text modern pages and search beyond the legacy clip, ID-only speakers, chronological cursor traversal with unchanged identities, and a title update verified as applied and persisted without a Gateway restart or capture interruption. The owned lease was stopped after evidence retrieval. Follow-up archive changes only adjust test fixtures and move the cross-plugin E2E to its root test owner, preserving every assertion and resolved import target. After rebasing onto main, 43 runtime-proof sources remain byte-identical; the other runtime changes are upstream assistant-error transcript plumbing and an opt-in update-canary branch, neither exercised by this successful-turn, ordinary-startup proof. The archive production delta remains unchanged. Discord transport, model, and STT edges were synthetic; this does not claim an external Discord/provider round trip.Earlier real Gateway/browser download proof exercised complete Markdown/JSONL downloads with 55 synthetic sessions and 310 utterances. That earlier revision is supplemental evidence; final export projection and byte bounds have focused regression coverage.
The final full compatibility/projection delta has a fresh scoped-clean P0–P2 review. The full changed gate passed, including core/test types, lint, dead-export scans, schema/storage checks, import cycles, and access guards. The final real Gateway proof above covers the frozen archive production source, with the explicitly reviewed upstream rebase differences described above.
CI exposed an exported-name collision between public notes projection and the raw reader; the raw reader and its sole caller were renamed, with a reproduced guard and focused proof. A subsequent run found two failures in unchanged browser owners (sandbox config hash and Chromium selected-tab creation); those are being investigated separately from archive code.
CI fixture repairs passed 93 focused tests under parent
TZ=UTC, including a fresh-process timezone check, plus all 10 extension-boundary checks. The moved E2E is discovered by the existing E2E config; its 27 import rewrites resolve to the same targets. Test types, lint, and the final scoped P0–P2 review pass without raising baselines or adding exclusions.Focused relocated capture E2E executed
test/e2e/gateway-transcripts-discord-capture.e2e.test.tson the fully tested pre-rebase8b9efd8b8085d19b30dd9943f7abc03ec531bd30source, with all 83 frozen source hashes verified. The named late-STT/route-change case passed, actual Vitest exit was 0, and cleanup completed; the owned lease was stopped. The outer proof wrapper exited 1 solely because its duration-summary regex did not strip ANSI formatting. The original report and log remain unchanged; independent ANSI-normalized log inspection verified the test pass. Normal PR CI does not execute this general E2E case; this focused run closes the relocation execution gap. External Discord/model/STT edges remain synthetic.The generic hello-fixture cleanup is separately landed in refactor(gateway): isolate Serve hello lifecycle tests #140044 and is no longer part of this archive diff. The new archive methods sit immediately after the complete 434-entry published
v2026.9.2catalog, before main's unshippedupdate.reportandskills.workshop.readrows. Every shipped prefix/index and every method's complete descriptor remain unchanged. A three-way merge check reproduces future-append conflicts before this placement and merges cleanly afterward in the descriptor catalog, generated Android enum, and exact inventory test. The placement passed 31 method tests, canonical generation/Swift checks, lint/format checks, and a fresh scoped-clean P0–P2 review.Final composition
1db5b20b7c7d07828254b009cd9ed2c00a490397cleanly inherits refactor(gateway): isolate Serve hello lifecycle tests #140044. The reviewed placement files are byte-identical after rebase, and 77 of the 83 source files frozen for the relocated capture proof remain byte-identical. The remaining six contain protocol/catalog additions, the approved method placement, and its inventory assertion; no archive, capture, startup, dispatch, or store owner changed. Later main also added unrelated optional session/repository fields to generated Swift models. Fresh CI validates the composed head; earlier runtime proof remains explicitly bound to its tested source.Final exact-head CI passed on
1db5b20b7c7d07828254b009cd9ed2c00a490397. The first attempt hit an unchanged Android caption-test readiness race: existing approval text can remain visible during refresh, while the test immediately expects the refresh flag to be false. Android owners, themes, test and build inputs match the earlier green revision; only the generated method enum differs. One targeted job retry passed the unchanged third-party suite. The original failure and successful retry logs are retained; no assertions, timeouts or source changed for the retry.