Skip to content

fix: show completed task transcripts after cleanup - #157247

Merged
steipete merged 9 commits into
mainfrom
codex/fix-cleaned-task-history634
Sep 24, 2026
Merged

steipete merged 9 commits into
mainfrom
codex/fix-cleaned-task-history634

Conversation

@steipete

@steipete steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes finished sub-agent tasks showing “No transcript messages yet” after cleanup: "delete", despite an existing retained transcript.

User Impact

The Tasks inspector can show and page through retained conversations after cleanup, including failures before the first assistant reply. No migration or configuration change is needed; retained archive bytes are unchanged.

Deleted child sessions no longer have sharing metadata. Archive previews therefore require existing access independent of those missing facts, such as Gateway administrator access. Profile-scoped readers keep normal sharing checks while the child session is retained; access to the parent task does not establish the deleted child's entitlement.

A single archived record above 8 MiB makes this preview unavailable, including when it belongs to another retained generation with the same session key. Run membership is stored inside the records, so an unreadable candidate prevents a unique match even if the requested run’s own archive is small. Tasks explains this permanent limit without suggesting refresh or offering an ineffective retry. Existing messages remain visible if an older page fails. Ordinary transient failures keep their retry action.

Why This Change Was Made

Cleanup removes the live alias that Tasks previously queried. The existing archive worker now reads the exact run and active archive generation, using the canonical branch selector and chat projection for redaction, coordination, recovered errors, heartbeat boundaries, and size notices. Shared header timestamp handling filters inherited pre-start announce pairs after a fork while retaining current acknowledgements.

Live and cron reads bind to the physical transcript through the existing worker owner. Paging and final publication revalidate the recorded generation, current task and sharing authority, preventing alias reuse from selecting a different conversation. Harness history is unchanged.

Disposable SQLite scratch storage bounds navigation state. The reader rejects records above 8 MiB before concatenation or parsing; ordinary oversized records retain the existing size notice. Completion delivery's final-answer scanner remains unchanged. A structured capacity detail carries the safe error through the Tasks UI while preserving generic retry behavior.

Evidence

The registered regression failed after real archive/delete cleanup and now returns retained messages and valid cursors. All six archive cases pass, covering forked history, heartbeat and hidden context, failure-only runs, coordination and pagination. The same fixture verifies allowed retained reads, profile-scoped live access, missing-entitlement denial, revocation during awaited verification and capacity-error mapping. The earlier 36-case archive/payload and 35-case live-binding groups also passed.

Hosted review identified the same-key candidate availability limit above. Maintainer source review accepts it explicitly: archive rows contain no independent run index, and skipping an unreadable candidate would weaken unique-generation selection. The behavior remains a documented limit, not a fixed availability defect. The later exact-head hosted review accepted this explicit tradeoff and retained its sufficient runtime/access proof verdict. The correction makes the message accurate and extends the existing owner fixture to verify refusal during both initial lookup and binding revalidation. The focused case passed in 7.01s (36.49s command wall including cold worker compilation); the registered error capture took 14.13s. Seven scoped static checks and fresh delta review passed.

The capacity UI regression failed on both initial and older-page errors before the consumer correction. All 44 Tasks detail/state tests now pass, including generic retry behavior and retention of already-loaded content. Exact synthetic registered RPC responses supply the browser evidence below.

Hosted CI exposed two integration issues: missing local Kysely boundary annotations, corrected with byte-identical emitted JavaScript, and an enumerated transcript mock that omitted the new pure failure-run helper. The corrected mock retains the real module and overrides only its event sink; the exact failed file now passes all 226 tests. The original failed logs remain retained; five sibling CI jobs were cancelled rather than independently failing. Canonical protocol generation/check passes, including the generated Swift detail-union arm. Consumer review raised a possible queued-refresh interaction; source inspection rejected it because every page scans the whole archive before filtering, so an unchanged archive cannot fail capacity only on an older page and then have a successful tail. A successful later tail represents readable source and should recover. The original review and its disposition remain retained. All selected static checks passed. CI passed on 36b8ed8114a1. The later wording head exposed a stale registered-test substring; the typed capacity error was correct, and the corrected assertion now passes with all six existing registered archive cases (51.78s command wall, including 15.22s cold worker compilation; the formerly failing case took 6.34s). Scoped lint/format/diff and fresh delta review pass, with no production or media change. The same run also had an iOS checkout-only timeout before any build/test, an intervening-main shared-client lifetime fixture race, and a 120-second planner-test timeout. The lifetime race is separately fixed on main in 619405d49ddd and included here; its owner proved 20 standalone and three original-order shard runs. The planner timeout remains separately investigated, and the checkout failure has no established underlying transport cause. Latest-head hosted gates remain required.

The current-main integration preserves the worker helper’s success-envelope ownership and adds only the existing transcript-binding callback/result kind. Fresh review passed. Four selected registered flows (live child, failure receipt, cron pagination, and archived cleanup pagination) passed in 42.51s command wall; 27 unrelated cases were filtered, not rerun. Core types (51.37s), scoped lint (18.16s), Swift generation, assertion guard, format and diff checks passed. Main’s generated protocol additions and baseline reductions are preserved. The subsequent main fixture integration leaves all 48 task source files unchanged; only the baseline incorporates unrelated main reductions while retaining the obsolete lifecycle-row removal.

The original runtime replay restored the CSV and report/chart task requests and answers. A fresh full build of the published integration head 689bb6970818 then passed in 891.85s, and all eight served startup assets matched that build. Through the normal UI, two real OpenAI children using collect: true and cleanup: "delete" returned the expected arithmetic result (204) and Unicode text. Their retained task transcripts remained readable across selection changes and a hard reload. Persisted records independently confirm both successful collections, absent live child nodes/windows, and published deleted archives. Final-head hosted review found no actionable or security findings and accepted the runtime, authenticated transport and inspected UI evidence.

Measured test costs and large-history limits

The backend access/error six-case archive suite took 38.27s, its expanded sharing/capacity case 7.96s (18.32s command wall), and the Tasks UI group 5.49s. The existing 226-case directive suite took 73.38s. Earlier archive and live-binding groups took 27.31s and 66.60s. Registered tests use real SQLite/archive workers; cold compiler output is reused within a CI group. No sleeps, polling, retries, timeout increases or worker restrictions were added.

A retained non-CI diagnostic of 1.85 million records previously exhausted the 512 MiB worker heap. The final reader returned the exact count, page, cursor and 8,000 context records in 39.06s with 166.9 MiB sampled worker heap and 1.04 GiB process RSS, using a 4 MiB page budget. This is worker proof, not a full UI measurement: the complete extreme-history browser flow and final verification latency remain unproven. Source tracing confirms that this browser request has no default deadline; the previously reported 30-second browser limit was incorrect and belongs to a separate client wrapper. The measured 39.06-second worker read remains a latency follow-up; timeout behavior and currentness checks are unchanged.

A 250 MiB single record exposed excessive native parsing memory, so that parser was removed. The final reader rejects it in 0.490s with sampled process RSS of 687.7 MiB, versus 610.3 MiB before the read; the rejected implementation reached 3.80 GiB. No heap sample arrived before rejection. An initial diagnostic assertion incorrectly rejected the expected worker Error event; source and lifecycle receipts confirm the capacity rejection, joined worker and absence of an out-of-memory error. Large fixtures remain outside per-PR CI.

The final integrated build measured startup JavaScript at 371,178 bytes against the unchanged 371,332-byte limit, including the separately landed Labs fix. The optional strict UI report still fails on inherited Mermaid assets: 1,593,188 bytes against 983,040. No dependency or budget changes were made, and no full strict-performance pass is claimed. The earlier backend candidate also exceeded the startup limit; those original results remain retained.

These inspected synthetic Control UI captures replay exact registered responses following real cleanup. Later repairs preserve this ordinary successful transcript output.

Before

Completed task showing an empty transcript

After

Completed task showing the retained transcript after cleanup

Inspected capacity-error before/after screenshots show the permanent preview-limit guidance and removal of ineffective retry actions. Both screenshots were also delivered in the originating chat.

Authenticated Gateway transport proof on 36b8ed8

A one-off fixture used one isolated real Gateway, configured synthetic trusted-proxy identities, ordinary device pairing and normal WebSocket requests. The task transcript was written and archived through the real cleanup owner. The administrator received the retained answer. A restricted viewer could read the parent task through tasks.get, but received no child transcript. A second administrator then used the normal users.setRole RPC to revoke the reading operator's role while real archive verification was paused at a deferred scheduling barrier. The Gateway retired that connection without a history response; reconnecting the same paired device with its reduced role returned an explicit denial. The barrier supplied neither authority nor transcript data.

The fixture passed in 19.44s command wall / 7.38s test time. Its first run passed the access and socket-retirement checks, then failed because the fixture tried to pre-pair its existing device again; the replay reused that pairing. No production code, timeout, retry or authorization rule changed.

The following final response frames contain only synthetic content. Connection credentials and endpoints are absent:

{
  "cleanupDeleted": true,
  "allowed": {
    "type": "res",
    "id": "60988d9a-ca7c-4ed9-aa18-d19496e061c3",
    "ok": true,
    "payload": {
      "messages": [
        {
          "role": "assistant",
          "content": "Synthetic archive result: 22.00, café 雪",
          "stopReason": "stop",
          "__openclaw": {
            "runId": "transport-child-run",
            "id": "transport-synthetic-answer",
            "recordTimestampMs": 1790254211070,
            "seq": 1
          }
        }
      ]
    }
  },
  "parentAuthorized": true,
  "denied": {
    "type": "res",
    "id": "f28cc47b-dcdd-4d37-a7db-fbf0722f2ac3",
    "ok": false,
    "error": {
      "code": "UNAVAILABLE",
      "message": "Unable to load this task's transcript. Refresh the task and try again."
    }
  },
  "revocation": {
    "roleChangeOk": true,
    "closure": {
      "code": 4001,
      "reason": "operator role changed"
    },
    "inFlightHistoryFrames": [],
    "reconnectDenied": {
      "type": "res",
      "id": "bcd04a4c-8463-4054-baac-2a4f239e3e16",
      "ok": false,
      "error": {
        "code": "UNAVAILABLE",
        "message": "Unable to load this task's transcript. Refresh the task and try again."
      }
    }
  }
}

Read retained task archives through the existing worker owner, preserving active branches, exact run and generation binding, current access, and bounded display context. Keep live and cron reads bound to their physical transcript.

Use disposable navigation storage and reject task preview records above 8 MiB before parsing. Retention and completion delivery remain unchanged.
@clawsweeper

clawsweeper Bot commented Sep 24, 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.

@steipete
steipete marked this pull request as ready for review September 24, 2026 11:35
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 1:17 PM ET / 17:17 UTC (Revision 11).

ClawSweeper review

What this changes

The branch lets the Tasks inspector page through completed subagent conversations after session cleanup by reading retained SQLite archives and shows a non-retryable message when a record exceeds the preview limit.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main and the latest release still depend on the live child session for this read. The branch has credible runtime and access-control proof, and I found no actionable defect in the introduced change. The documented 8 MiB preview limit was explicitly accepted in the PR discussion.

Priority: P2
Reviewed head: 8d1e1923dff0a4fb49494c0fa4d9ca0c83ec01ab

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong production-path and UI proof supports a coherent repair, while the large archive-reading change warrants ordinary merge review.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The changed Gateway archive reader and Tasks UI were exercised through a served build with real child cleanup and readable after-fix transcripts; an authenticated Gateway trace additionally shows allowed delivery, restricted denial, and revocation before response. Inspected before/after images show the separate capacity-error UI change. The archive format is unchanged and the new SQLite navigation store is disposable, so stored-data compatibility is not applicable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed Gateway archive reader and Tasks UI were exercised through a served build with real child cleanup and readable after-fix transcripts; an authenticated Gateway trace additionally shows allowed delivery, restricted denial, and revocation before response. Inspected before/after images show the separate capacity-error UI change. The archive format is unchanged and the new SQLite navigation store is disposable, so stored-data compatibility is not applicable.
Evidence reviewed 9 items Current-main gap: The fetched main revision still routes task history through live chat history and has no archived-task page reader.
Release check: The latest release uses the same live-history route, so it does not already contain this repair.
Introduced archive route: Terminal subagent history selects the retained archive and checks task and sharing authority again before publishing the response.
Findings None None.
Security None None.

How this fits together

The Gateway's task-history request turns task records and session transcripts into pages for the Control UI Tasks inspector. After cleanup removes a child session, the retained SQLite archive supplies its transcript, subject to Gateway access checks.

flowchart LR
A[Task record] --> B[Gateway task history]
C[Viewer identity] --> D[Access check]
B --> D
D --> E[Retained SQLite archive]
E --> F[Message projection]
F --> G[Tasks inspector]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +1781, Tests +1731, Docs +15, Other +46. Total +3573 across 49 files.

View PR surface stats
Area Files Added Removed Net
Source 37 2111 330 +1781
Tests 8 1778 47 +1731
Docs 2 18 3 +15
Config 0 0 0 0
Generated 0 0 0 0
Other 2 47 1 +46
Total 49 3954 381 +3573

Review metrics

Metric Value Why it matters
Code and regression coverage production +2,191/−330 lines; tests +1,745/−47 lines The substantial production growth is explained by bounded archive selection and reading, with registered cleanup and access regressions covering the new path.

Technical review

Best possible solution:

Keep archived task pages bound to the original run and generation, enforce current access at publication, and retain the documented preview limit.

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

Yes. Current main loses the live child-session route after cleanup, and the PR records a failing registered archive/delete case before the repair; I did not execute it in this read-only review.

Is this the best way to solve the issue?

Yes. Reading the retained archive through its existing worker owner addresses the missing transcript while binding pages to the run and preserving current sharing checks.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6e8d06876fd1.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a limited but user-visible Tasks inspector failure after subagent cleanup.
  • merge-risk: 🚨 security-boundary: The new archived-transcript route reaches deleted child history, so its task, sharing, and revocation checks remain important merge context despite the supplied denial proof.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed Gateway archive reader and Tasks UI were exercised through a served build with real child cleanup and readable after-fix transcripts; an authenticated Gateway trace additionally shows allowed delivery, restricted denial, and revocation before response. Inspected before/after images show the separate capacity-error UI change. The archive format is unchanged and the new SQLite navigation store is disposable, so stored-data compatibility is not applicable.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed Gateway archive reader and Tasks UI were exercised through a served build with real child cleanup and readable after-fix transcripts; an authenticated Gateway trace additionally shows allowed delivery, restricted denial, and revocation before response. Inspected before/after images show the separate capacity-error UI change. The archive format is unchanged and the new SQLite navigation store is disposable, so stored-data compatibility is not applicable.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-24T12:28:30.843Z sha 67be98c :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-24T12:57:43.985Z sha 36b8ed8 :: needs changes before merge. :: [P2] Keep unrelated archives from blocking task history
  • reviewed 2026-09-24T13:04:33.640Z sha 36b8ed8 :: blocked before merge. :: [P2] Select the requested run before enforcing unrelated archive limits
  • reviewed 2026-09-24T13:32:25.488Z sha c8d40b8 :: needs changes before merge. :: [P2] Update the capacity assertion for the final error copy
  • reviewed 2026-09-24T13:41:20.789Z sha c8d40b8 :: needs changes before merge. :: [P2] Update the capacity assertion for the final error copy
  • reviewed 2026-09-24T13:54:40.499Z sha 6c8b0d8 :: blocked before merge. :: none
  • reviewed 2026-09-24T14:14:35.531Z sha 689bb69 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-24T14:53:16.990Z sha 689bb69 :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: XL labels Sep 24, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. and removed P1 High-priority user-facing bug, regression, or broken workflow. labels Sep 24, 2026
@steipete

steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor Author

The capacity error now reaches the Tasks panel with its useful explanation. A retained record above the 8 MiB preview limit keeps history intact and no longer offers a Retry action that cannot help. The wording also covers an oversized candidate from another generation of the same session key; it does not blame the requested task. Other transient history errors retain Retry.

These inspected synthetic screenshots use registered error responses through the existing mock Gateway and actual Control UI renderer. They demonstrate rendering; registered RPC and archive framer tests separately cover backend behavior. The after image reflects the final candidate-scope wording.

Before:

Task preview before: generic error and misleading Retry

After:

Task preview after: retained-record capacity explanation without Retry

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Sep 24, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The remaining final-effect proof requested in revision 3 is now in the PR body under “Authenticated Gateway transport proof on 36b8ed8.” It records final frames from one isolated real Gateway with normal authenticated synthetic clients and real cleanup/archive: authorized history delivery, parent-authorized restricted denial, normal role revocation retiring the in-flight connection without a history frame, and denial after reconnecting the same paired device with its reduced role. The scheduling barrier only pauses real archive verification and supplies no authority or response. The focused proof passed; its fixture-only first failure is disclosed.

The current head also contains the typed capacity-error UI consumer and the corrected existing transcript mock. Both inspected before/after image pairs render in this PR; the capacity pair is linked from the body. Please assess the updated evidence and current head through the ordinary review workflow.

@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 24, 2026
@steipete

steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision 4 disposition and current-head correction

The revision 4 same-key archive finding is an explicit maintainer-accepted availability limitation, not a claim that the blocking behavior was removed. After inspecting the retained schema and reader, we are preserving fail-closed unique-generation selection: archive rows have no independent run-membership index, and an unreadable candidate cannot safely be excluded. Skipping it could overlook another matching run. An ad hoc streaming JSON selector would add substantial correctness and maintenance cost for this exceptional record size; a durable index would require a separate storage-contract change.

Head c8d40b82375 corrects the capacity message so it does not imply the oversized record belongs to the requested task, documents the same-key-generation limit, and extends the existing archive fixture to verify refusal at both initial lookup and binding revalidation. The cap, integrity checks, generation selection, access policy and retained bytes are unchanged. The focused case passed in 7.01s (36.49s command wall), the exact registered error capture in 14.13s, seven scoped static checks passed, and fresh managed delta review found no actionable P0–P2 issue. The prior head's full CI passed.

The normal current-head review can reconcile revision 4 against this explicit tradeoff and accurate user-facing contract. The authenticated transport evidence already accepted in revision 4 is unchanged. The PR body retains the limitation and proof; the capacity after screenshot now shows this exact wording and was inspected, chat-delivered, uploaded and visually verified in the existing screenshot comment linked from the PR body.

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Sep 24, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 24, 2026
@steipete
steipete enabled auto-merge (squash) September 24, 2026 17:41
@steipete
steipete merged commit 4c7c647 into main Sep 24, 2026
228 checks passed
@steipete
steipete deleted the codex/fix-cleaned-task-history634 branch September 24, 2026 17:42
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
* fix: show completed task transcripts after cleanup

Read retained task archives through the existing worker owner, preserving active branches, exact run and generation binding, current access, and bounded display context. Keep live and cron reads bound to their physical transcript.

Use disposable navigation storage and reject task preview records above 8 MiB before parsing. Retention and completion delivery remain unchanged.

* chore: document task history SQLite boundaries

* fix: enforce archived task preview access and capacity errors

* fix: show permanent task preview limits in the inspector

* fix: clarify archived task preview capacity limits

* test: align archived task capacity assertion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant