Commit Graph
54 Commits
Author SHA1 Message Date
imccyu 26ac56f780 chore(release): align master-only packages to 0.2.2-rc.5 2026-11-18 18:29:39 +08:00
imccyu 7400626e6e chore(release): sync release/dsh-0.2.2 0.2.2-rc.4 to master
# Conflicts:
#	packages/client/hmr/package.json
#	packages/client/script-realm-iframe/package.json
#	packages/client/ui-jobs/package.json
#	packages/client/ui-session-panel/package.json
#	packages/experimental/action-cards/package.json
#	packages/experimental/client-ui-forge/package.json
#	packages/experimental/cua-bundle/package.json
#	packages/experimental/forge-gitlab/package.json
#	packages/ptc-runtime/ptc-runtime-node/package.json
#	packages/session/tool-working-directory/package.json
#	packages/util/atomic-write/package.json
2026-11-17 21:37:34 +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 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
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 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
LegGasai eba69b9fd6 refactor(session-panel): share the row look through CSS marks instead of a row Factory
A row Factory took each contributor's icon, text, trailing control, and
menu as React nodes in props, which the client rules forbid. Each
contributor now writes its own row markup and marks the parts with
`data-session-panel-row` and `data-row-part`; the panel's stylesheet lays
them out, so rows from every package keep one geometry and a contributor
can restyle a part with its own class.

A menu part that renders nothing, such as the shared menu button while its
target has no menu entries, takes no room and no longer makes the row
highlight.
2026-11-13 19:51:46 +08:00
LegGasai 9e396d9c3d Merge branch 'feat/session-panel' into feat/session-panel-sections
# Conflicts:
#	.agents/notes/implemented/feature/2026-11-05-session-panel.i18n.yaml
2026-11-13 17:38:20 +08:00
LegGasai c8663435dc refactor(session-panel): decide docking in CSS and observe only a dock probe
The Chat aside layer observed the frame and the transcript column, so its
observer called back on every frame of a streamed reply, and the panel wired
useSyncExternalStore to an observable passed through owner props. The layer
now publishes the end gutter as --dsh-chat-aside-gutter and observes nothing.
The panel's stylesheet derives the docked width and a 1px dock probe from one
set of metrics, and the plugin observes only that probe through an injected
ref, so it hears the docking decision flip and nothing else.
2026-11-13 17:36:26 +08:00
LegGasai 91f3f69995 Merge branch 'feat/session-panel' into feat/session-panel-sections 2026-11-13 13:43:48 +08:00
LegGasai f9495ca61b fix(session-panel): join the toggle's name with aria-labelledby instead of a space
The toggle's accessible name joined the panel name and the indicators' text
through a whitespace text node. It now references both with aria-labelledby,
which separates them by definition; the indicators sit in a display: contents
wrapper, so their layout is unchanged.
2026-11-13 13:43:47 +08:00
LegGasai b5c6513105 Merge branch 'feat/session-panel' into feat/session-panel-sections 2026-11-13 12:46:06 +08:00
LegGasai 17fca0af2e fix(session-panel): dock wider and float narrower, closer to the edge
The docked panel is now 300-360px wide, 40px clear of the transcript and
8px from the end edge, so it docks from a 348px gutter; the overlay is
280px wide, so it covers less of the transcript than the docked panel takes
beside it.
2026-11-13 12:45:55 +08:00
LegGasai 7872a980fb Merge branch 'feat/session-panel' into feat/session-panel-sections 2026-11-13 11:35:46 +08:00
LegGasai 3e29cace36 test(session-panel): type the panel spec's gutter tracking stub as the prop
build:check rejected a recording stub whose parameters the default stub's
inferred type did not declare.
2026-11-13 11:35:46 +08:00
LegGasai e7dfa74ac0 Merge branch 'feat/session-panel' into feat/session-panel-sections
PanelRow moved from ui-primitives into ui-session-panel as the
conversation.session.panel.row Factory, so the detail line and actionLabel
this branch added move with it, and the forge checkout, connection, local
changes, and sign-in rows render through renderFactorySlot with their row
attributes in the attributes prop.
2026-11-13 11:33:37 +08:00
LegGasai 4186e5dd31 refactor(session-panel): offer the panel row as a Component Factory instead of a primitive
PanelRow only lays out the content its contributors pass, so it belongs to
the Session panel rather than ui-primitives. ui-session-panel registers it as
the conversation.session.panel.row Factory; contributors render their rows
through renderFactorySlot, and row attributes travel in an explicit
attributes prop so the props a Factory occurrence adds never reach the DOM.
2026-11-13 11:24:47 +08:00
LegGasai 6af99291a8 refactor(session-panel): size the panel in CSS and render only when the dock decision changes
The aside layer now publishes its end gutter through an observable source
instead of React state, so neither resizes nor transcript updates re-render
it. The panel's docked width comes from --dsh-chat-content-width in CSS, and
the panel and its toggle subscribe only to whether the gutter holds the
docked panel; a mounted panel registers its source with the shared state
instead of pushing measured gutters from an effect.
2026-11-13 11:17:14 +08:00
LegGasai 66c558f5cb Merge remote-tracking branch 'origin/feat/session-panel' into feat/session-panel-sections 2026-11-11 16:35:23 +08:00
LegGasai 3c5d888751 Merge remote-tracking branch 'origin/master' into feat/session-panel
# Conflicts:
#	docs/config-catalog.md
#	docs/config-catalog.zh.md
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
#	docs/module-graph.md
#	docs/module-graph.zh.md
#	packages/client/README.i18n.yaml
#	packages/preset/agent-preset/skills/dsh-doc/references/packages.md
#	pnpm-lock.yaml
2026-11-11 16:16:28 +08:00
LegGasai 05ed06ebeb Merge commit 'e4ca2cd0e16' into feat/session-panel-sections
# Conflicts:
#	packages/client/ui-session-panel/README.i18n.yaml
#	packages/client/ui-session-panel/README.md
#	packages/client/ui-session-panel/README.zh.md
2026-11-10 10:36:02 +08:00
LegGasai f544556e0e fix(panel): show the toggle and working folder tooltips after 500ms of hover
Sweeping the pointer across the header or the Environment rows no longer
flashes tooltips; keyboard focus still shows them at once.
2026-11-10 10:33:54 +08:00
LegGasai 94afa1e029 fix(panel): hold the scrollbar 2px from the panel's end edge
A transparent end border over the panel's background keeps the bar off the
edge, as the sidebar does; the content keeps its width and 8px end inset.
2026-11-10 10:33:52 +08:00
LegGasai 7fce6bfcf2 fix(forge): mark change requests that need attention with a yellow dot
The toggle's mark asks for attention rather than reporting an error, so it
takes the warning color.
2026-11-07 14:46:36 +08:00
LegGasai 283822be79 fix(panel): stop the docked panel above the composer stack
The composer seat fades and takes presses across the body's full width, so a
tall docked panel faded out at its end and its last rows could not be pressed.
2026-11-07 12:26:29 +08:00
LegGasai bee43f5c7e Merge commit '173499005d84c3b66639ff7e7303518aacf39c0e' into feat/session-panel-sections 2026-11-07 12:26:29 +08:00
LegGasai 655db2cf38 feat(panel): show a running dot on the panel toggle while the panel is hidden
Subagents and background jobs each register an indicator that shows a blue dot
with their running count for assistive technology while work runs and the panel
does not show it. The jobs indicator keeps the roster stream open while the
toggle is mounted. The forge attention mark takes the toggle's 6px dot, up from
a 3.6px core, and paints above the running dots.
2026-11-07 11:55:54 +08:00
LegGasai 75a89ddf6a feat(panel): show shared tasks as their own Session panel section
The shared task board leaves the Subagents section's footer for a section of
its own at order 250, with the panel's title and its progress in the title
control. Task rows and subagent rows now share the panel's columns, and the
Subagents section no longer reads Team facts, so the footer slot is removed.
2026-11-07 11:52:56 +08:00
LegGasai 1eb24252ad Merge the feat/session-panel head into feat/session-panel-sections 2026-11-07 11:41:36 +08:00
LegGasai 46aec91960 feat(panel): size toggle indicators to one dot and tell them whether the panel shows 2026-11-07 11:38:47 +08:00
LegGasai 18e532e37f fix(panel): let long section progress clip before the section title 2026-11-07 11:38:46 +08:00
LegGasai 97fef62e2f fix(panel): reserve the scrollbar column so the panel content keeps its width 2026-11-07 11:38:46 +08:00
LegGasai a5914fe929 fix(panel): align row actions on the trailing column without a tooltip 2026-11-07 11:38:45 +08:00
LegGasai 000f8fe736 Merge remote-tracking branch 'origin/feat/session-panel' into feat/session-panel-sections
# Conflicts:
#	.agents/notes/implemented/feature/2026-11-05-session-panel.i18n.yaml
#	docs/subsystems/slots.md
#	docs/subsystems/slots.zh.md
#	packages/extensions/cordis-client-runner/src/client/slot-catalog.ts
2026-11-06 18:58:50 +08:00
LegGasai 3500261d0d refactor(panel): mount the Session panel in the Chat aside
The panel now occupies `conversation.chat.aside` instead of a seat in the
Conversation shell, and `ui-conversation` returns to its master state: no
`conversation.session.panel` seat, no `layouts` source, no end-gutter
reports from the width controls, and the composer and viewport height
variables back on the scrollport.

Each mounted panel reports its Chat View's end gutter into the plugin's
state; the toggle reads the widest gutter of its Session and is unavailable
while no Chat View shows it. The overlay still closes once the gutter can dock
the panel or no Chat View shows the Session, and keeps the composition and
focus-return behavior.
2026-11-06 18:53:14 +08:00
LegGasai d79991fdd0 Merge remote-tracking branch 'origin/feat/session-panel' into feat/session-panel-sections 2026-11-06 18:04:24 +08:00
LegGasai ba1a12b72e fix(panel): keep the working folder separator out of the accessible text 2026-11-06 18:02:48 +08:00
LegGasai a18d40412a Merge remote-tracking branch 'origin/feat/session-panel' into feat/session-panel-sections 2026-11-06 17:36:54 +08:00
LegGasai eaae69bcad fix(panel): hide the working folder's parent when too little of it fits 2026-11-06 17:32:03 +08:00
LegGasai d4eb3b049f Merge commit '7002b48547284397051f41a0f6a7801876b93288' into feat/session-panel-sections
# Conflicts:
#	packages/client/ui-session-panel/README.i18n.yaml
#	packages/client/ui-session-panel/README.md
#	packages/client/ui-session-panel/README.zh.md
2026-11-06 17:26:11 +08:00
LegGasai ae0062cf14 feat(panel): show the working folder as name and parent, with flat row actions
The project row now shows the Session's current working directory from the
`workingDirectory` projection, falling back to the creation directory and then
the listing Workspace. It renders the folder name, then the parent folder in
tertiary ink with an ellipsis, and a tooltip naming the working folder with
its full path. `@deepseek-ai/dsh-working-directory/types` carries the
projection's type declaration for Client programs.

Row action buttons no longer draw their own hover or active fill on top of
the row highlight.
2026-11-06 17:25:06 +08:00
LegGasai 173b629bdf Merge remote-tracking branch 'origin/feat/session-panel' into feat/session-panel-sections 2026-11-06 16:54:35 +08:00
LegGasai dbd69abfa1 fix(panel): measure adopted Sessions and keep the panel overlay transient
- The main width controls restart their measurement when the body adopts
  its first Session, so a Session opened from the blank home reports its
  gutter without waiting for a resize.
- ConversationLayout gains `shown`: the width controls report null when
  the body stops showing a Session, and a released Session publishes it
  as not shown before its layout is dropped. Layouts no longer outlive
  their Session's binding scope.
- The overlay follows its Session's layout and closes once the gutter can
  dock the panel or the body shows another Session, so it never reopens
  on its own.
- Escape is left to an input method composing text, and focus moves to
  the toggle when the panel hides while it holds focus.
- The client inject list names the context menu, Remote, and connection
  packages the panel reads, the README states Escape priority and the
  Chat-only gutter, and the Agent Note describes the turn rail as it is.
2026-11-06 16:52:50 +08:00
LegGasai 8d602350d6 Merge remote-tracking branch 'origin/feat/session-panel' into feat/session-panel-sections 2026-11-06 12:59:18 +08:00
LegGasai 5286026ec5 fix(panel): draw section titles in secondary ink at medium weight
Primary-ink titles read as one more row of content. Secondary ink at
medium weight sets them apart from the primary rows below and from the
tertiary counts and progress beside them.
2026-11-06 12:56:56 +08:00
LegGasai 0976f07079 Merge branch 'feat/session-panel' into feat/session-panel-sections
# Conflicts:
#	packages/client/ui-primitives/README.i18n.yaml
#	packages/client/ui-primitives/README.md
#	packages/client/ui-primitives/README.zh.md
#	packages/client/ui-primitives/src/PanelRow.tsx
#	packages/client/ui-primitives/tests/panel-row.client.spec.tsx
#	packages/client/ui-session-panel/README.i18n.yaml
2026-11-06 12:19:34 +08:00
LegGasai 7da5278653 feat(panel): highlight Session panel rows as a whole and reveal row menus
PanelRow gains a menu slot for row actions such as a More button, shown
on row hover, on focus inside the row, and while its menu is open, and
always without hover. A row with an action covers its whole width with
the action's button, and any row with an action or row actions fills as
a whole on hover and while one of its menus stays open, instead of
filling only the icon and text. The project row moves its More button
into the menu slot.
2026-11-06 12:10:29 +08:00
LegGasai d13649cca8 Merge remote-tracking branch 'origin/feat/session-panel' into feat/session-panel-sections 2026-11-06 11:54:20 +08:00