Commit Graph
27526 Commits
Author SHA1 Message Date
LegGasai a1c0299977 Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential 2026-11-16 15:17:39 +08:00
LegGasai 251e3300a4 Merge pull request #7990 from deepseek-harness/feat/session-panel-sections
feat(panel): move change requests, jobs, and subagents into the Session panel
2026-11-16 14:45:47 +08:00
LegGasai 8eda7cfb7c Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts:
#	scripts/empty-catch.baseline.json
2026-11-16 14:36:05 +08:00
Dudu-0223 8be1b3f5b1 Merge pull request #8524 from deepseek-harness/fix/subagent-empty-route-fields
fix(subagent): accept empty route fields and clarify child model selection guidance
2026-11-16 14:22:40 +08:00
Dudu-0223 c4cc4a1594 refactor(subagent): check empty route fields with a per-field hasText predicate
Match the per-tool, per-field rule from the unambiguous tool argument
decision and record the subagent case there.

Refs #8523
2026-11-16 14:03:52 +08:00
Dudu-0223 1f2bd4d33c test(subagent): record empty route fields and the discovery hint through the SDK profile
Share empty-string handling between subagent and list_subagent_models, and
simplify the reasoning_effort description.

Refs #8523
2026-11-16 13:32:41 +08:00
Dudu-0223 198efd16f6 fix(subagent): say when to set child route fields and where provider ids come from
Refs #8523
2026-11-16 13:04:48 +08:00
Turtle f08cd7c4b1 Merge pull request #8529 from deepseek-harness/turtle/shrink-delete-task-dialog-d75d0c08f86f
fix(ui-schedule): clamp the task instruction in the delete confirmation
2026-11-16 12:40:25 +08:00
Turtle 843fc0fa24 Merge pull request #8428 from deepseek-harness/turtle/clean-empty-catch-69cac4a2ccee
fix: retire the legacy empty-catch baseline
2026-11-16 12:16:11 +08:00
Turtle 56bcba2574 test(ui-schedule): assert every declaration the prompt clamp needs 2026-11-16 12:09:13 +08:00
Turtle e65560503a Merge pull request #8518 from deepseek-harness/turtle/fix-sidebar-scroll-c22e7e84e865
fix(sidebar-right): scroll the Start guide in a short pane
2026-11-16 12:05:47 +08:00
Turtle 909e6533f8 fix(ui-schedule): clamp the task instruction in the delete confirmation
A long instruction stretched the delete confirmation to nearly the full
viewport. Show it as a three-line secondary excerpt instead.

Refs #8453
2026-11-16 12:03:25 +08:00
Turtle cb92e8d6cf Merge remote-tracking branch 'origin/master' into turtle/clean-empty-catch-69cac4a2ccee 2026-11-16 12:01:22 +08:00
Dudu-0223 42849bcf42 test(subagent): expect the list_subagent_models hint in SDK effort-only rejection 2026-11-16 11:32:27 +08:00
Dudu-0223 7c2ca7cb6e fix(subagent): treat empty route fields as omitted and point rejections to list_subagent_models
Fixes #8523
2026-11-16 11:19:25 +08:00
Turtle b35eaa2f64 Merge pull request #8484 from deepseek-harness/turtle/fix-huge-markdown-freeze-ab12e311d02d
fix(deps): upgrade Markdown parsers to remove quadratic table and list parsing
2026-11-16 11:14:06 +08:00
Turtleandoraluben 79487993e7 docs(sidebar-right): describe the scrolling Start guide; restore the e2e viewport in finally
Co-authored-by: oraluben <[email protected]>
2026-11-16 10:51:22 +08:00
Turtleandoraluben 00b9fef246 fix(sidebar-right): pad the scrolling Start guide and cover it in e2e
Co-authored-by: oraluben <[email protected]>
2026-11-16 10:40:18 +08:00
Turtleandoraluben d17304556b fix(sidebar-right): scroll the Start guide when it outgrows a short pane
Co-authored-by: oraluben <[email protected]>
2026-11-16 10:32:02 +08:00
Chinesezjc 6cdae4cf2a Merge pull request #8500 from deepseek-harness/fix/ci-db3969f-native-watch
test(workspace-files): arm the native watch before real-watcher mutations
2026-11-16 02:26:13 +08:00
dsh-ci-bot 7f4642a797 test(workspace-files): arm the native watch before real-watcher mutations 2026-11-16 02:12:34 +08:00
imccyu 1b7674107a Merge pull request #8498 from deepseek-harness/fix/undeclared-hoisted-deps
fix(build): resolve undeclared hoisted dependencies from declaring packages
2026-11-16 01:02:47 +08:00
imccyu 3b55cf3525 fix(build): resolve undeclared hoisted dependencies from declaring packages
Resolve the bundled buffer import in webworker-runtime and the Mermaid
component plus vue in the website from their declared dependencies, so
builds no longer rely on pnpm hoisting undeclared dependencies.

Fixes #8497
2026-11-16 00:50:38 +08:00
LegGasai 1d200479dc refactor(primitives): place compact hover cards by CSS anchor positioning
The compact card's side and bottom hold were computed in script from the
window size and the anchor's rect, measured again after the card mounted, and
kept current by scroll and resize listeners. The stylesheet now anchors the
card to its wrapper: beside the end edge, else the start edge, each also with
the card's bottom held at the viewport's margin.

A card that fits on neither side used to sit over its anchor, which left the
row under it unclickable. It now opens below the anchor from the anchor's
start edge, or above it; a card too tall for either stays in the viewport's
bottom end corner.
2026-11-15 18:34:14 +08:00
LegGasai 26a0c6ae02 test(web): count the marquee's frame callbacks without an unknown cast
The sidebar marquee test kept its frame counter on window through an
assertion to unknown, which the no-unknown-casts gate rejects.
2026-11-15 18:07:36 +08:00
LegGasai 09f49dbb39 refactor(primitives): return the hover marquee's row handlers by their event names
useHoverMarquee returned enter(event?) and leave(), and the sidebar row also
called enter() without an event from an effect to keep its title marqueed
while the row's menu is open. The hook now returns onPointerEnter and
onPointerLeave, which a row spreads onto its element, and takes a hold option
for the open-menu case, so no caller drives the marquee imperatively.
2026-11-15 17:28:33 +08:00
LegGasai bc75e0ed84 perf(primitives): carry the hover marquee by a CSS animation instead of a frame script
The marquee moved its text by setting the scroll position in a
requestAnimationFrame callback on every frame of the travel. The text now
sits in an inner span that a keyframe animation translates: the handler
measures the overflow once on entry and gives the stylesheet the distance and
the time it takes at 30px/s. A delayed zero-length animation lifts the end
fade at the far edge, and reduced motion is a media query. Speed, the far-edge
hold, the one-step return, the 8px threshold, and the touch exclusion stay.
2026-11-15 17:26:29 +08:00
LegGasai 0277971e87 refactor(session-panel): offer row hover details as a panel Factory with data props
The details a panel row shows in its hover card took React nodes for the
title, lines, and measure icons and lived in ui-primitives. The three lists
pass strings for the first two and one of two icons, so the component moves
to ui-session-panel as the conversation.session.panel.details Component
Factory: props are data, and a measure names its kind, which selects the icon.
2026-11-15 17:04:30 +08:00
LegGasai e66b080437 feat(jobs): fold each job group past five rows, newest live jobs first
The Background jobs section showed every live job and, once nothing ran,
every settled one, which filled the panel. Each of its two groups now
shows five rows followed by the panel's fold control, "Show N more
running" or "Show N more finished", once that holds back two rows or
more. Each fold is kept per Session, across hiding the panel, and Clear
folds the settled group to five rows again.

Live rows now list the most recently started job first instead of the
earliest, so the rows a group holds back are the ones that have run
longest, not the ones that just started.

An expanded row observes its output only while its row shows: folding it
out of the list, or closing the settled group over it, stops the stream,
and showing the row again reopens it.
2026-11-15 16:22:36 +08:00
LegGasai 66bf0a7178 feat(agent-team): order shared tasks by state and fold the list past five
The Shared tasks section listed every task in source order, so completed
tasks often came first and a long plan filled the panel. It now lists the
tasks in progress, then the pending ones, each in source order, then the
completed ones with the latest in source order first, and shows five
tasks followed by the panel's fold control once that holds back two tasks
or more. The fold is kept per Session, across hiding the panel.

A task carries no completion time, so source order stands in for it
among the completed tasks. The recorded task list moves the completed
task after the pending ones.
2026-11-15 16:22:35 +08:00
LegGasai d4519bb470 feat(subagent): list running subagents first and fold the list past five rows
The Subagents section listed every direct subagent in creation order, so
a Session with many of them filled the panel and put the newest at the
bottom. It now lists running subagents first, the most recently started
first, then the others by their Session's last update, and shows five
rows followed by the panel's fold control once that holds back two rows
or more. The fold is kept per Session, across hiding the panel; an
expanded branch's own rows all show.

A subagent sorts by when its parent created it while the Client holds no
turn timing for it, or only the stand-in row of a Session outside the
Host list, whose update time is 0. The e2e found that case: catalog-only
members all tied at 0 and kept creation order.
2026-11-15 16:22:34 +08:00
LegGasai 6df95fd991 feat(session-panel): offer a fold control for long panel lists
A section's list could grow without bound and push the later sections
out of the panel's height. The panel now offers the control such lists
end with as the `conversation.session.panel.fold` Component Factory: one
more row of the list that shows the rows held back or folds them again.

The control takes data and a callback only: whether the list shows every
row, the visible text and accessible name for that state, and the toggle.
It renders a row on the panel's row marks, `data-session-panel-row="fold"`,
in the 12px tertiary type of the section counts with a 14px chevron in
the icon column. Each section keeps its fold state and decides which rows
show.

A Factory fits here although rows are contributor markup: the control is
the same in every section, and three copies of it would be clones.
2026-11-15 16:22:11 +08:00
LegGasai 46cf27ce35 fix(session-panel): keep a row highlighted only for its own open menu
A panel row stayed highlighted while anything inside it carried
aria-expanded="true". The rule means a row's open menu, so it now names
the menu part: a body button that discloses something else highlights its
row on hover alone.

The layout e2e opens the working folder row's menu in the real app and
checks that the row keeps its highlight and its More button after the
pointer leaves for the menu.
2026-11-15 16:21:55 +08:00
Turtleandstd-microblock 1f8c6f8e3f chore(deps): align the root mdast-util-from-markdown range
Co-authored-by: std-microblock <[email protected]>
2026-11-15 16:21:08 +08:00
Turtleandstd-microblock eafa4302a5 fix(deps): upgrade Markdown parsers to remove quadratic table and list parsing
Refs #8483

Co-authored-by: std-microblock <[email protected]>
2026-11-15 16:18:09 +08:00
LegGasai 99e03fb7b2 Merge remote-tracking branch 'origin/master' into feat/session-panel-sections
The base branch (#7965) is merged, so this branch now targets master.
Conflicts came from #8452 in the forge changes view:

- ChangedFiles.tsx: this branch's Row component (hover marquee, rename
  tooltip) takes master's viewed state: the subdued class, its
  description for assistive technology, and `done` down the tree.
- ReviewControls.tsx: master keeps every segment's Tooltip mounted; this
  branch's 500ms hover delay stays on it.
- ChangesTab.module.css: master's gap-step rules stay; the local changes
  card's rules stay removed, as the card moved into the Session panel.
- The forge README is merged sentence by sentence and its pairing
  record re-recorded.
2026-11-15 15:26:50 +08:00
LegGasai eaf815665a Merge pull request #7965 from deepseek-harness/feat/session-panel
feat(panel): add the floating Session panel
2026-11-15 15:20:08 +08:00
LegGasai 824dc61c20 Merge pull request #8452 from deepseek-harness/fix/forge-changes-view-feedback
fix(forge): step unchanged lines, fit the lens, fix gap highlighting, and dim viewed files
2026-11-15 13:53:02 +08:00
LegGasai d4d9756917 Merge branch 'master' into fix/forge-changes-view-feedback 2026-11-15 13:25:51 +08:00
LegGasai 2b6d6de9d1 fix(forge): key corrected highlighting by the file's change
Corrected tokens were kept under a run's side and line numbers only and
survived a new comparison of the same file. Tokens carry their lines'
text, so a refresh that kept the line numbers but changed the content
drew the last change's text, and a change request's file kept it until
a gap was expanded again. Every key now names the file's change digest,
so another change finds none of the old tokens from the render that
names it.
2026-11-15 13:21:47 +08:00
LegGasai bd99b1e062 Merge branch 'feat/session-panel' into feat/session-panel-sections
Brings master (through feat/session-panel) into this branch. Master changed
controls this branch had moved into the Session panel, so its changes are
carried over to their new homes:

- Jobs: master hides the stop control without `job/kill` access in the
  header list this branch removed; the panel's Background jobs section now
  reads `useAccess('job/kill')` the same way.
- Forge: master takes the sign-in command from the provider
  (`readiness.signIn`) in the sidebar tab this branch removed; the panel's
  sign-in row now does, for any code host, instead of building a GitHub
  command itself.
- Agent team: the team settings pane and its copy from master, with this
  branch's Shared tasks section registration.
- Tests: master's helpers for the team settings pane and its numbered
  reference helper are combined with this branch's panel steps; the
  status fixture gains master's `completionFailed`.
- READMEs of ui-agent-team and client-ui-forge are merged sentence by
  sentence; generated catalogs, the persistence schema, and pairing
  records are regenerated.

The upgrade guide moves to docs/upgrade-guide/v0.2.2-rc.3, the root
version after master's release.
2026-11-15 13:00:24 +08:00
LegGasai ae7adb5d47 Merge remote-tracking branch 'origin/master' into feat/session-panel
Conflicts were all in generated files and pairing records: the config
catalog, the dsh-doc package list, and the README records of
packages/client and ui-conversation. Each takes master's side and is then
regenerated, so it differs from master only by this branch's entries.

Also in this merge:
- ui-session-panel follows master's release to 0.2.2-rc.3, and the
  lockfile is master's plus this package.
- The web-fetch-failure-row header capture, added on master, gains the
  Session panel toggle.
2026-11-15 12:27:49 +08:00
LegGasai 08b9e73017 fix(forge): rebuild long old sides without argument spread and keep lens focus
Rebuilding the old side spread each run of unchanged lines into push,
which throws a RangeError once a file has around 200,000 unchanged
lines, so such a file failed to draw as soon as it was read ahead. Lines
are now appended one at a time.

A lens segment gained or lost its Tooltip wrapper when its count showed
or hid, which remounted the focused button and dropped the focus. Every
segment now keeps a Tooltip that is disabled without hover text.

gapOf has no caller since gaps answer which lines they still hide, so it
and its test are removed.
2026-11-15 12:24:48 +08:00
Xu HanxiangandDeepSeek Harness da7f9b4c5a feat(liveshare): open the viewer capabilities a share can serve (#8304)
* feat(liveshare): open reader capabilities the share can serve

(cherry picked from commit 3c893b488900fff776a21eebee4eb2d95b878764)

* feat(liveshare): let a reader run the session's slash commands

(cherry picked from commit ae02bcc0f819e55ebf066de7581d4d89994930a4)

* fix(liveshare): allow a reader to list the workspace file references

(cherry picked from commit fffaa864b9d790a0aab30da639d5ef50ff8f303c)

* fix(liveshare): bind the job endpoints to their session resource

(cherry picked from commit 357d1f6efe5b161a4ce1b616e66599c4e75a6ab1)

* chore: refresh the Cordis surface catalog

(cherry picked from commit 88f88b225f0fcff0a5a88f09b0f555749dd62756)

* test(job-controller): read the Session resources the Remote methods declare

The job roster, the follow stream, and a kill each declare the request's
Session as the resource they touch, and an unowned job's follow names none.
Read those declarations off the mounted Controller and pin what they answer.

(cherry picked from commit fa3f92427a6bd56ad2a949dc74315505cb75533b)

* feat(liveshare): offer a shareable core component to viewers

The terminal controller reaches the catalog from a core profile bundle, which
the catalog excludes so no application plumbing is offered. Mark such a
component shareable: PluginMetadata gains the mark, and the host names the
packages that carry it, so a marked core component enters the catalog and
every other core component stays out.

The terminal namespace leaves the exclusion list for the same reason, and
the marked component carries the title its dialog row shows.

(cherry picked from commit b0e9e390719aab519fd82cf39c85c60e4f77b588)

* fix(liveshare): classify the terminal methods as owner-selected

The nine terminal methods leave owner-only for plugin-offered: the owner picks
them in the share dialog, no reader role grants one, and a share that names
none still refuses every terminal call.

(cherry picked from commit 718c1b45a1b01320cbe9be46ece9deca37225fe2)

* docs(liveshare): state that terminals open per method

Terminals are no longer unconditionally owner-only: the share dialog offers
the terminal controller's methods and opens none until the owner picks them.

(cherry picked from commit 505c1193571b16431731f69bd5ca1b59a1059a13)

* test(liveshare): cover a viewer reaching the Session's terminals

The end-to-end case mounts a real terminal controller beside the share host:
the catalog offers it as a shareable core component, a share that selects
nothing refuses every terminal call, and a selected terminal/create through
the reader's own Peer binds the shell to the Session its agentId names.

(cherry picked from commit 25955a936dc5b58ebfd8e1d24f495d62d59f7b70)

* fix(workspace-files): confine non-owner reads to the session workspace

A non-owner Peer now reads and watches files only inside the connected Session workspace. stat, read, readBytes (including baseFile) and changes resolve the target canonically and refuse an outside one with workspace-file/outside-workspace before reporting its kind. Owner and trusted in-process callers keep the filesystem read authority.

(cherry picked from commit 7ae855e12ba6c5bc99c7ae75d65d984661f3bbb5)

* refactor(workspace-files): name the file access confinement

Replace the contain boolean with a named FileConfinement carried by the service, and move the outside-workspace refusal into one helper shared by file reads and watches. No Remote interface or behavior changes.

(cherry picked from commit 1c4dbd68220df7c559f84cf2782f9626c5b2ef4b)

* refactor(workspace-files): name the path mode PathScope

Replace the FileConfinement/confinement vocabulary with PathScope, and rename its module and test. The values and behavior are unchanged.

# Conflicts:
#	packages/api/workspace-files/src/index.ts
#	packages/api/workspace-files/tsconfig.host.json

(cherry picked from commit 5d3f7b31dc6a1dbcf44c5fdd59295402bf40cf76)

* refactor(workspace-files): accept several workspace roots in the path check

The confinement helper and change feed now take several resolved roots; the current scope still supplies one. WorkspaceFileScope.workspaceRoot remains the primary root, so a future multi-workspace Session can add optional roots without changing endpoint signatures, path arguments, or the client address.

(cherry picked from commit 73fd59be92c421c378b7fe5606d8d7c5806b13cb)

* fix(workspace-files): keep the multi-root watch check covered

Pass the primary watch root separately and iterate the roots list, so the feed keeps full coverage for the multi-root preparation. Add braces to the multi-root test arrow for the lint rule.

(cherry picked from commit 1286aac6a6d93e693dbb33f2feaa71e6252424e0)

* test(workspace-files): assert a refusal never reports the target kind

The outside-workspace failure carries only the path, so a share reader learns
nothing about what it was refused. stat, read, readBytes, list, and a relative
escape are each asserted not to carry a kind.

(cherry picked from commit a9495de0ff63a1aac325d1cb62b8111c188ae8a5)

* test(workspace-files): keep the search caps in the shared harness config

Rebasing over the search endpoint left configOf() without the search limits
the master harness passed inline, so every search call reached the subprocess
provider with an undefined graceMs. configOf and peer() now take Caps and
supply the suite defaults.

(cherry picked from commit 70cecb9b352ce5c1e17482429b1539483e101d60)

* docs(workspace-files): describe the read confinement against the search-era structure

The master README added the search section and rewrote the file-read checks
without a workspace-containment check. Those paragraphs now state which
caller the check applies to, the change feed mentions the non-owner watch,
and the source map lists path-scope.ts. Bilingual hashes re-recorded with
verify-translation-pairing --write.

(cherry picked from commit e61fdabaf2fb9b0c0bc507ef5ceea0f213f70683)

* fix(liveshare): keep workspaceFiles/search in the reader session-read role

The classification table is the single source for POLICY_DECIDED_ACTIONS, so
the new search endpoint must also appear in the read role's actions.

(cherry picked from commit 665093b07cfee87be105fdc71a7d58fe25974788)

* docs(catalog): regenerate the client and config catalogs

Removing the viewer share-path tab drops its client slot entry, and the workspace file import shifts the Config source line.

(cherry picked from commit 7bb9295a18b011971b4338171a60d16ff82eebd1)

* docs(catalog): regenerate the config catalog source line

(cherry picked from commit 2d98a59afc8aa6e2a9ac268d4446bcd8cd5eeb26)

* fix(liveshare): let share readers preview workspace files

The served page keeps the shipped Sidebar and now reads the shared Session
workspace through workspaceFiles: stat, read, readBytes, list and changes join
the Session read role, while the file service confines every non-owner read to
that workspace root. The viewer tab type that answered each file address with
"a share hands over paths, not contents" is removed, so the shipped document
preview opens the file.

Refs #7901

(cherry picked from 5e0ceac3faa)(partial: liveshare files only)

* fix(ui-jobs): offer the stop control only with job/kill access

(cherry picked from commit 804956ece9c09b2fac6180cd78da7aa7393ae0de)

* fix(ui-chat): attribute a reader's steering row while it is pending

Chat declared the message-source seat on the user node registration, so an
admitted steering row rendered the shared bubble without asking for it and
a Host-pending steering occurrence carried no source to ask with. Move the
seat to the flow: it renders user rows, admitted steering rows, and pending
steering occurrences, and hands the same renderer to each.

Liveshare's selector now elects a share-viewer source of either kind, so a
reader's interjection states its author from the moment it is sent.

(cherry picked from c802aef8392)(partial: liveshare client files only)

* docs(liveshare): state when a reader's interjection shows its author

A local submission echo carries no source, so the author line appears once the
Host records the input in the Inbox, not when the reader sends it.

(cherry picked from 42001b1294d)(partial: liveshare client files only)

* docs(liveshare): describe the seat source arriving as row props

(cherry picked from commit 466e25328c5c42c792bfb30bba05ff790259bf99)

* fix(liveshare): refuse /permission to share readers

The commands executor runs a command handler inside the owner Host with no
reader-specific narrowing, so a reader line such as
`/permission danger-full-access` left the shared Session unconfined with no
approval. The read role's condition now parses the `commands/execute` line
and refuses the owner-only command names, starting with `/permission`, with
the new `command-owner-only` reason the viewer page classifies. Every other
command keeps following visibility.

* feat(permission-presets): add the permissionPresets/set Remote

The `/permission` command switches a Session's sandbox mode and approval
policy inside the owner Host's own handler, which gives a share reader that
reaches `commands/execute` no endpoint decision to meet. The switch now has
a Remote face: `permissionPresets/set` names the Session it writes as its
`session` resource, so the Gateway decides who may call it before any preset
is resolved or any knob changes.

The request carries the Session id and the preset name only. An unknown
preset and a Session this process does not hold live both refuse with
`gateway/bad-request` before writing. The call reports the selection the
Session reads back after the switch.

The command reaches the same switch, keeping its ordering and its `success`
and `error` text. Because a Remote parameter cannot carry an Agent, the
command supplies the approval write itself so its model-visible policy
notice still follows the switch.

Co-Authored-By: DeepSeek Harness <[email protected]>

* fix(liveshare): classify permissionPresets/set owner-only

The new preset endpoint writes the source Session's sandbox mode and approval
policy, so no share reader role may reach it at any tier. The viewer endpoint
classification records it as owner-only, and the viewer access policy spec
proves a reader is refused on the shared Session, on its own forks, and on a
Session outside the share, and that no reader grant carries the action.

The owner-only command whitelist stays as the second defense: the commands
handler runs inside the owner Host, so a reader line must not depend on that
handler continuing to route through the endpoint.

Co-Authored-By: DeepSeek Harness <[email protected]>

* test(liveshare): keep every permission preset endpoint owner-only

The classification table's completeness gate proves a new generated endpoint
has a row, but not that the row keeps a reader out. This case reads the table
and fails when any `permissionPresets/*` endpoint is classified as anything
other than owner-only, so an endpoint added there without its class checked
turns the suite red instead of widening a reader's reach.

Co-Authored-By: DeepSeek Harness <[email protected]>

* docs(catalog): regenerate for the preset set Remote

The new `permissionPresets/set` Remote adds its signature and its request type
to the generated service and type catalogs, maps the request type to the
permission presets subsystem page, and shifts the permission preset config
source line. The permission presets subsystem pages describe the write path
and its Remote face on both sides.

Co-Authored-By: DeepSeek Harness <[email protected]>

* test: construct SessionId values and keep the approval notice lock

The rebased specs called SessionId as a value while importing it as a
type, so every case threw ReferenceError. Construct the ids the way the
packages already do, and keep the /permission case that locks the single
model-visible approval notice.

* test(liveshare): load the terminal controller without a built artifact

The spec resolved a generated typert artifact at module load, so a clean
checkout failed before any case ran.

* docs(liveshare): state the reader limits the review asked about

Marks the answer path's dependence on timed asks, records that @ mentions
list every host session, and explains which commands stay owner-only.

* feat(liveshare): let a viewer manage the goal of a visible Session

The goal is Session data, not the workspace sandbox, so the same visibility
rule that already covers goals/get and goals/edit applies to create, pause,
resume, complete and clear. The /goal command reaches the same service, so
the endpoint and the command now agree.

# Conflicts:
#	packages/experimental/liveshare/README.i18n.yaml

* fix(liveshare): keep the terminal component titles

The shareable mark's localized titles were spread onto the metadata record, which
put `en` and `zh` at the top level instead of in the `titles` field the catalog
reads. A core bundle without display metadata therefore offered the terminal
with no product name at all.

* fix(workspace-files): decide the path scope before stat

A non-owner read probed the path with `lstat` before it checked containment, so
reading an absent path outside the workspace answered `not-found` while an
existing one answered `outside-workspace`. That let a share reader probe whether
any path on the owner's machine exists.

Every confined read now resolves and confines its target first: `read`, `stat`,
`readBytes` (including a path relative to a base file) and `list`. The final
`lstat` still reports the component's own kind, and the owner keeps the
filesystem's authority, including its previous answer for an absent path.

* docs(liveshare): drop the queue-verb mention

`session/updateQueue` is not in the viewer Session read role, and viewer queue
management is not part of this change. The role's rationale now names the
reach it actually carries, and the workspace file actions no longer leak
whether a path outside the workspace exists.

* test(liveshare): describe the terminal suite's actual coverage

* chore: regenerate the catalogs the viewer capability change moves

session-reference, user-questions and the permission presets all feed the
Cordis, persistence and doc-graph generators, so their artifacts were stale.

* fix(liveshare): keep the command refusal copy paired and cover the file paths

The English notice read "/permission on", which the locale gate tokenised
together while the translations kept the command alone. The workspace-file
and preset paths the coverage lane flagged now have cases of their own.

* test(workspace-files): accept either refusal code for a UNC base

Windows resolves an unreachable UNC host through the local backend's ancestor
walk, which reports an IO failure instead of the not-found POSIX reads. Both
refuse the read; the code belongs to that backend, not to the path-scope
decision this case covers.

* refactor(liveshare): leave the command surface to its own change

Running a slash command is a separate decision from what a reader may read:
the executor wraps several capabilities in one opaque call, so the endpoint
that admits it is not the place to decide them. This change keeps the reader
capabilities and the preset endpoint, and returns the command wiring when the
command surface itself is reshaped.

* refactor(liveshare): leave the workspace file preview and terminal grant out

Reading a Session's data and reaching into the owner's workspace or shell are
different promises: the first follows visibility, the second changes what the
owner's machine does. This change keeps the reader capabilities that describe
Session data and returns the other two for their own discussion.

* refactor(jobs): let the session resolver name the job endpoints' Session

The session resource resolver already reads a top-level sessionId, so the
explicit readers restated what it derives. Removing them keeps one rule for
how a Session resource is named.

* test(liveshare): drop the workspace preview stubs the strip left behind

The viewer shell no longer opens workspace files, so the fixture route and
the assertion about it no longer describe anything.

* fix(jobs): bind the job endpoints to the Session they name

The session resolver reads a top-level sessionId, but these methods take a
request object and no lookup parameter, so the request fell through to the
global resource and a reader was refused. The explicit readers state the
Session the Gateway must authorise.

* refactor(jobs): let the session resolver name the job endpoints' Session

The session controller's resolver already reads the sessionId of the first
object argument, so an explicit reader on these methods restated a rule the
Gateway already applies. The tests now install the session controller and
assert the resource the production composition produces.

* refactor(session-controller): take the resolve input as one argument

An exported function cannot destructure its parameters, because the JSDoc
gate names them one by one.

* docs(liveshare): describe the capabilities this change actually opens

The workspace file preview, the terminal grant and the command surface
moved out of this change, so the package reference and the PR description
now state what remains.

* docs(persistence): refresh the catalog after the preset JSDoc edit

The permission-presets module doc grew a line, so the recorded source
line for its persisted event moved from 60 to 61.

---------

Co-authored-by: DeepSeek Harness <[email protected]>
2026-11-14 15:41:52 +00:00
Tianyi Cui d699668c2d Merge pull request #8469 from deepseek-harness/turtle/align-cua-screenshots-13708a2a118d
fix(ptc): return MCP screenshots to programs as Image values
2026-11-14 18:17:38 +08:00
Turtle 3e3aa697ca fix(ptc): fall back safely when program image substitution fails
Contain any substitution failure, including deep values, in the ordered
commit lane, state the all-or-nothing contract and text delivery in the
docs, and describe the raw-block fallback in the MCP declaration.

Refs #8468
2026-11-14 17:14:41 +08:00
Turtle d74405a2c8 fix(ptc): return MCP screenshots to programs as Image values
Admitted MCP image blocks now carry their attachment reference. PTC
turns value entries that reference finalized result images into
program Images, as native CUA screenshots are, so inspect shows the
picture instead of base64 and the picture is not attached twice.

Refs #8468
2026-11-14 16:57:28 +08:00
Tianyi Cui 237df33679 Merge pull request #8466 from deepseek-harness/turtle/fix-date-bomb-test-519b65db7555
test(liveshare): derive owner credential horizons from the real clock
2026-11-14 15:21:20 +08:00
Turtle c97b55f9fd test(liveshare): derive owner credential horizons from the real clock
The spec hardcoded a live horizon of 2026-11-14, which the host compares
with Date.now(), so it failed from that date on.

Fixes #8465
2026-11-14 15:07:26 +08:00
LegGasai c64862545f Merge branch 'feat/session-panel' into feat/session-panel-sections
The panel's row Factory is gone on the base branch: rows share their look
through `data-session-panel-row` and `data-row-part` marks that the
panel's stylesheet lays out. This merge carries the rows of this branch
over to it:

- The two-line row moves from PanelRow's stylesheet into the panel's row
  rules as the `lines` and `detail` parts.
- The forge checkout, connection, local changes, and sign-in rows write
  their own marked markup instead of calling the Factory; the connection
  row, the local changes row, and the change requests section no longer
  take `renderFactorySlot`.
- The forge e2e measures the local changes and checkout rows in the real
  panel.
2026-11-13 20:22:32 +08:00