Depending on the Session panel brings the file and Browser params types into
the forge program, so reading lens and path off the params union no longer
type-checks; narrow with in checks as the file preview body does.
Each Session panel row now holds one 28px line: the status, the title or
command, the duration, and the row's control. Resting the pointer on a row for
500ms opens a hover card beside the panel with what the second line used to
show and more: a subagent's owner, activity, mode, tokens, and exact duration;
a task's owner, description, and status; a job's kind, status, and duration.
The switcher menu keeps its two-line rows.
A compact HoverCard always opened beside the anchor's end edge, off screen for
rows of a panel at the window's end. It now opens beside the start edge when
only that side fits, and keeps to the viewport's end margin when neither does.
HoverDetails gives summary-panel rows one card body: the title, secondary
lines, the state after its dot, and measures after their icons.
Resolves import conflicts with the brand-export split (#8214): value
brand factories are now brandString<T>() calls, and dsh-workflow's
WorkflowRunId is imported from its types entry. Generated persistence
and config catalogs are regenerated.
Moving the delegation-depth read inside the operation's catch turned an
invalid runtime subagentDepth into a reasonless internal_error, so the
tool result lost the message that master still reported. The read is
back before the catch; delegationDepthOf now throws SubagentError
INVALID_DEPTH, so the tool result keeps the message and records that
name and code.
Refs #7869
A fatal WorkflowError such as AGENT_CAP or ITEM_CAP was rendered to text
inside the PTC guest, so the workflow tool could only report RUN_FAILED.
WorkflowResult and the workflow/end payload now carry errorCode, the
code of the fatal error that ended an error run; the host validates it
at the process boundary and the tool fails with that code. RUN_FAILED
remains only for an error run without one: the script's own exception or
an engine runtime failure. WorkflowError narrows code to
WorkflowErrorCode.
Refs #7869
Review of the gate found the reason-comment span too narrow: a comment on the
line above `catch`, or trailing the closing brace, was rejected, so the natural
place to explain a clause did not count. The span now starts at the preceding
token and ends with the line closing the clause.
A binding pattern that names nothing (`catch ({})`, `catch ([])`,
`catch ({ _ })`) counted as naming the error. The gate now requires one bound
name other than `_`.
`--record REF` writes the inventory for a merged tree and refuses any clause the
named revision does not already carry, so no command allows a clause this branch
introduced; a merge that lands recorded clauses is the only case that adds
entries. The no-op body boundary (`catch { "use strict" }`) and the tolerance
for a file the parser cannot read past are stated in the module docblock and
pinned by specification rows.
The merge brings apps/desktop/src/client/WelcomePage.tsx:132,
apps/desktop/src/preload-platform-account.ts:26,
packages/credentials/deepseek-account-platform/src/index.ts:432, and
packages/credentials/deepseek-account-platform/src/logout.ts:33 into the
recorded inventory, so the gate passes on the merged tree. The two wide `try`
clauses need their owners' judgement: narrowing one changes which failures its
clause discards.