Repository navigation
The desk, DC6: the web app's session depth (transcript streaming, subagents, diff, info, the transcript slot) - #12
Merged
Merged
Conversation
…ble's fixture decided
…ows by chronological rebuild, M3 usage from DX4 (composite d349a87)
The depth column draws the selected direct channel's main transcript with MAWS's transcript view over DX8's session plane: rows mapped by MAWS's backfill under one ordered context, a streaming layer beside the store (chunks per content block, dropped once the block-row's row is applied), older rows rebuilt chronologically under a staged source, reset and end handled as DX8 states. Fixture: one scrubbed throwaway session with two subagents; the live part synthesized from its rows.
# Conflicts: # apps/desk-web/tsconfig.node.json
…) and DC5's cut noted
… reset reads as reconnecting (composite cd2667d)
…ep-end, omitted thinking drawn collapsed
… a reset reaches the attached source mid-rebuild
… live thinking is its label alone
…y runs direct after the load check
…scheduled before M3
…on, each agent's transcript on its own The depth column gains its Subagents tab. The tree is MAWS's task graph (tools/agents/model) fed from what a main-transcript subscription carries: DX4's subagents metas as the sidecars and the held rows' backfill events as the wire, so it grows as agents start and follows each to its end with no seq or launch ids to stamp. It draws through a copy of MAWS's Subagents lists; opening an agent mounts a copy of MAWS's drill-in (no Stop, no relay: depth issues no writes) over the agent's own DeskTranscript subscription, scoped by agentId, with its own reset and end. An Agent call's row in the main transcript opens its agent. The transcript pane is factored out of the column so both transcripts share it; the main pane stays mounted beneath the Subagents tab so its place is kept.
…th exported, diffBase)
…fences at EOF, unfolding after a reset, fold height A question's from bound starts after its call and leaves out only its own answer (a parallel tool's call and result between them are drawn). A fold says its end is unresolved once no older page can help (its start held), not only when the transcript is exhausted. A fence closed on the text's last line is not reopened before a live span's closing tag. A fold reopens its finished turns after a reset (MAWS forgets disclosure then), never those the reader folded. The fold is as tall as what it draws, up to min(60vh, 480px).
…question's toolUseId; SessionDepth from the fake machine's index DC3's fake now annotates the recorded ask question with its transcript call (toolUseId) and exports SessionDepth: the deep import goes, and the acceptance raises the recorded question and logs the recorded message, then unfolds the folds on either side of the question and finds both bounds in the transcript (no open-bound note, nothing drawn from the start, the answer and the bounding span left out).
…king MAWS's virtualized list from top to end Comparing only the rows rendered near the viewport depended on where the list sat: on the merged tip the first prompt row fell just outside the window before the reload and inside it after.
…nly when its session becomes reachable again After an end other than a discontinuity, depth subscribes again only once the session was unreachable since its last snapshot and is reachable now; a terminal error while it stays reachable (an agent's transcript the machine cannot serve) no longer resubscribes at once without end. A turn the reader folds and then opens again is reopened after the next reset. The acceptance's row walk fails when it does not reach the transcript's end.
…with backoff while its session stays reachable A machine replaced while its lease was fresh ends its old subscriptions machine-offline with no offline presence in between, so waiting for a reachability transition stranded the transcript. After an end other than a discontinuity, depth now retries while the session is reachable after 1 s, doubling to 60 s, reset by a snapshot; it still takes the transcript up at once on an unreachable-to-reachable transition and never retries while unreachable. The ended note says when it tries again.
# Conflicts: # apps/desk-web/src/main.tsx
…g, folds cut by the export's grammar, results with their calls Older rows are paged in until a page adds a drawn row or none remain (older-pages.ts): an empty list cannot scroll, and a page of attachments while the reader is at the top asks for the next. A fold cuts a row by the spans sminos record numbered, read with a port of doperpowers' sminos_marks.py (export-marks.ts: an unclosed mark is a span to the end). A tool's result draws with its call, as MAWS's derivation draws the pair at the call's place: a fold holding a call takes its result written after the fold's end, and a fold after the call leaves the result out.
…ll keeps its rows that hold no result filterResults dropped any row whose content was not an array of blocks (a prompt, a string-content task notification) once an earlier call existed, so a fold after a question or a message that followed a tool call lost its prompts. A row holding no result now passes through a fold's own rows unchanged; only the late-result projection takes results alone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The desk web app's session depth (child DC6 of the desk composite,
docs/doperpowers/specs/2026-10-15-desk-design.md). The plan isdocs/doperpowers/plans/2026-10-15-desk-dc6-depth.md, and its Decision Log carries every ruling made during the build.Stacked PR. This is based on
smns-erb-web(DC5, the web shell). Its diff also carriessmns-erbmerges, and those are DC3's hub and fake machine, reviewed on their own branch. DC6's own work is the first-parent, non-merge commits of6ada9f12..HEADonsmns-erb-depth, under these paths:apps/desk-web/src/depth/**apps/desk-web/e2e/depth*.tsande2e/fake-machine.tsapps/desk-web/test/double/{session-stream,fake-plane}.tsapps/desk-web/test/fixtures/depth/**connectDepth()line insrc/main.tsx, the Tailwind@sourcelines insrc/styles/app.css, the desk-web configs, and thewindow.mawsrule ineslint.config.jsPer the composite's writer, the desk lands on
masteras DC3, then DC5, then DC6; this PR is retargeted tomasteronce DC5's merges.What it does
connectDepth()registers two DX8 slots.depth, the right column, has four tabs:TranscriptSourceover DX8'sSessionPlane.block-rownamed, at once for another agent's block, and atstep-endfor a block with noblock-row.resetreads as reconnecting. After any otherendthe transcript is retried at once when the session becomes reachable again, and otherwise on a backoff from 1 s to 60 s while it stays reachable; it is never retried while unreachable.<message>marks draw as MAWS's Presenter draws them.subagents, with each agent's transcript on its own subscription.Subscription.diff()on open and on refresh, drawn throughsplitPatchandReviewView.DeskSession; model from the transcript; context and cost from DX4usage.transcript, one fold of a direct channel's working record, drawn through the to-human Presenter over the exclusiverange {from, to}. A bound is a<message>span or a question'stoolUseId ?? request.Transcript text is untrusted, and this page holds the org key. Text renders only through MAWS's Markdown and Presenter sanitization. Links open with no opener and pass a scheme allowlist. A lint rule forbids
window.mawsandglobalThis.mawsinapps/desk-web/src.Validation Evidence
scripts/ci-gate.sh --runner linuxpasses static, unit, and e2e:desk-web (67 browser tests): run https://github.com/SSFSKIM/MAWS/actions/runs/38818748087 on82b812e4. Only plan-doc commits followed it.apps/desk-web/e2e/depth-acceptance.spec.tsreplays the two-subagent recording throughSessionDepthand DC5's DX3 double in Chromium, in the same run. It shows:toolUseIdresolves.pnpm --filter desk-web exec vitest run src/depthpasses 94/94 across 13 files. They run MAWS's real store, reducer, and backfill, and cover per-block settling, step-end, late metadata, a reset during a rebuild, paging across a split tool call, and the resubscribe rule.apps/desk-web/e2e/depth.spec.ts, a row carrying a script, raw HTML, and ajavascript:link, both streaming and settled, executes nothing, and links open with no opener.src/rendereris edited on this branch; the unit gate covers it.highreview (doperpowers:review-code, reviewer-high) found one P2, a resubscribe loop on terminal errors. The first fix (64481c89) stranded a transcript when the hub replaces a machine online-to-online. The fix that holds is82b812e4: an immediate retry on reachability returning, a 1 s to 60 s backoff while the session stays reachable, and no retry while unreachable. It was re-checked.Unresolved Review Findings
apps/desk-web/vite.config.ts). This is the accepted cost of importing MAWS's transcript view without cutting edges. DC5's M4 measures load on the phone, and the decision is left there.Residue
test-results/, so a failing desk-web trace never comes back from the Linux lane. This cost a blind re-run during M2 and M3. The fix is to addapps/desk-web/test-results/to the gate's artifact upload (.github/workflows/gate.yml).enrollment.test.tsflakes. It failed twice on the Linux lane, once with 502 vs 404 and once with 502 vs 400 on the 64 KiB case, and passed on rerun both times. This is DC3's to investigate; it has already been reported to the composite's writer.