Commit Graph
63 Commits
Author SHA1 Message Date
LegGasai 5a3e2ccb57 Merge remote-tracking branch 'origin/master' into worktree/session-panel-stay-pinned-128657 2026-11-19 16:05:24 +08:00
imccyu 26ac56f780 chore(release): align master-only packages to 0.2.2-rc.5 2026-11-18 18:29:39 +08:00
LegGasai 8b7c308c04 Merge remote-tracking branch 'origin/master' into worktree/session-panel-stay-pinned-128657
# Conflicts:
#	packages/client/ui-chat/README.i18n.yaml
#	packages/client/ui-conversation/README.i18n.yaml
2026-11-18 15:29:22 +08:00
LegGasai 5b10652f55 feat(session-panel): move the transcript with the panel and offer no drag for a lone section
A press that shows or hides the panel plays one motion: the panel slides
across its 8px edge inset and fades, and the transcript and the composer
move into or out of its room over the same 160ms and curve. A change of
room (a switch to another Session, a reload, a resized window) still shows
or hides the panel at once, and the entrance no longer replays on every
mount. The slide stays inside the scrollport, so the Conversation body
gains no sideways scroll range whose bar would lift the composer.

While only one section besides Environment shows, its title row offers no
drag: no grab cursor, no handle, and a drag that starts there is refused.

The e2e helper that shows the panel no longer counts a panel that is
playing its exit as shown.
2026-11-18 13:17:24 +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 ccbca7a7d2 feat(session-panel): dock by moving the transcript aside, without a pin
The panel no longer has a pin. While the docking preference is on and the
end gutter is narrower than the 348px that docks the panel, the Conversation
body moves the transcript column and the composer into the start gutter, at
their own widths, and the panel docks in the room that leaves. Where the
start gutter cannot give it, the transcript stays centered, the panel hides,
and the toggle opens it over the transcript as before. The column never
narrows for the panel.

The panel's one dock probe has room while the gutter holds the panel or the
body's largest end reserve covers it, so the plugin's state, toggle, and
overlay rules are the gutter-only panel's. The width handles follow the
moved column, and a drag beside the docked panel moves only the column's
start edge. The drag mark of a section title passes pointer events through.

The Web e2e lane's standard page starts with docking off, since the panel
now docks at its 1680px width, and the specs that read the conversation
alone hide a docked panel first.
2026-11-17 17:56:58 +08:00
LegGasai 1edd4e31d9 fix(session-panel): keep Environment first and reorder sections by drag only
The Environment section always shows first: its title row is no drag source
and has no handle, a section dropped on it lands after it, and a stored
order that names it elsewhere is ignored. The arrow keys no longer move a
section; the drag handle is a mark on the title row instead of a button, so
recorded accessibility trees no longer list one per section.
2026-11-17 16:08:20 +08:00
LegGasai 125546c46b fix(session-panel): show the section drag handle in place of the trailing count
Over a hovered title row the handle lay on top of the end of the trailing
count, which faded under it. The row's end now shows one of the two: the
count at rest, and the handle in its place while the pointer is over the
title row, while the handle has keyboard focus, and during a drag. The
hidden count keeps its box, so the title does not move.
2026-11-17 14:36:12 +08:00
LegGasai c88d0c45a6 fix(session-panel): lay the section drag handle over the title row's end
The handle kept a 16px column in every title row, which shortened the room
for the title's trailing count whether or not the handle showed. It now
lies over the row's end, takes no room, and shows only while the pointer is
over the title row, while it has keyboard focus, and during a drag; the
trailing content stays in place and fades out under it.
2026-11-17 14:20:02 +08:00
LegGasai e541ed3b5c feat(session-panel): let the reader drag sections into another order
Each section's title row is a native drag source with a grab cursor, and a
drag handle shows at its end, in the column of the rows' More buttons, while
the row is hovered or the handle has keyboard focus. Dragging a title row
dims its section and draws a line on the edge of the section under the
pointer where it would land; the arrow keys on the handle move a section
past its nearest shown neighbor and keep focus on the handle.

The order is one preference for every Session, persisted under
dsh.sessionPanel.sectionOrder as the ids of every live section. A section
registered after the reader arranged the others follows the section it
follows in the registered order.

The sections are positioned for the landing line, so the pin is positioned
above them to keep taking presses. Recorded accessibility trees gain the
handle's button in each section title row.
2026-11-17 14:12:57 +08:00
LegGasai 506532c6d9 feat(session-panel): pin the panel so the transcript makes room for it
The panel gets a pin in its top end corner. While the pin and the docking
preference are on and the end gutter is narrower than the 348px that docks
the panel, the panel asks the Conversation body to keep that gutter free and
docks in it; neither Escape nor an outside press hides it. Below an 860px
Chat frame the body makes no room and the pinned panel is the overlay it was.

The plugin learns two facts from 1px probes that do not depend on the pin:
the gutter holds the panel as the transcript stands, and the transcript can
make that room. It offers the pin only where a press has an effect, and
unpinning a panel that only the pin kept beside the transcript leaves it
open as the overlay. The pin persists under dsh.sessionPanel.held; the
docking preference keeps its key and is named docks in the shared state.
2026-11-17 12:56:35 +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