The SDK profile and the Desktop PTC preset now add the agent-preset skills
directory to skill-filesystem, as the Desktop standard and Creator presets do,
so the first model request of every SDK session and of Desktop standard, PTC,
and Creator sessions lists the same dsh-doc skill.
Fixes#8557
The drag-scroll case read elementFromPoint once after moving to the drop point;
on a loaded runner the point can still miss a row, and the non-null assertions
then threw. Poll the target until it names a row, and give the reorder Host
round trip 10 seconds.
The Save in the provider editor writes settings and the credential on the Host
before the editor closes; the 1-second expect.poll default timed out on a loaded
CI runner. Wait up to 10 seconds, as other web e2e cases do for Host round trips.
The dedupe sentence claimed records appended before a rotation stay in
one segment, which implies they are collected. The predecessor is
skipped, so those records are not collected at all. Correct the English
and Chinese guides and the readOperationHistory contract.
* fix(forge): remove saved comment cards from the changes view
A comment added to the main input left a card beside its code that the
reader could not remove, also after its code changed or its file left
the diff. The card's menu now offers Remove for a reference and for a
publication receipt; the notice that follows offers Undo, which puts the
card back at its place. Removing a card changes neither the main input
nor the code host.
The three browser-kept cards share the thread card's geometry and its
header menu. A browser draft's Edit and Delete move into the menu, its
deletion asks first, and its move into the pending review is named Start
review while the user has none, as the comment form names it. The card
title "Your comment" is gone: the header shows the lines and the state.
* fix(forge): keep a draft's Delete while it is edited and let the view name each notice's tone
A browser draft being edited hid its menu, so a draft whose text the
reader emptied could be neither finished nor deleted. The menu now stays
during editing and offers Delete, which asks first as before.
The changes view passed its notices to a per-mount function that chose
the tone from a list of keys and forwarded the undo action. A second
mount with its own copy of that function would show a removal as a
failure without Undo. The view now passes the tone and the undo action
with each notice, and the mount hands them to the notice store as given.
A segment rotated after an append is still one file: comparing size and
modification time split it into two segments and collected its records
twice. Deduplicate by the bigint device and inode only, which stays exact
for a Windows 64-bit file ID, and pin that precision with a test whose
stat mock returns Number identities when called without the bigint option.
Narrow fileIdentity to BigIntStats and inline both segment names.
filesRead now counts owned segments that yielded bytes instead of
distinct identities, so two segments read under one colliding file ID
report 2. The rotation predecessor is deduplicated only when its handle
also reports the size and nanosecond modification time of the segment
already read: a reused Windows file ID cannot defeat the rotation check,
and an identity collision alone keeps the segment. The path stat that
could treat a transient failure as a rotation is removed.
Also fix the two oxlint errors in the retry loop and the cancellation
test, clear the open mock between tests so call-count assertions do not
depend on execution order, and document the bounded Windows retry and the
dedupe rule in both desktop diagnostics guides.
readOperationHistory could silently omit the rotation predecessor:
one transient Windows sharing or permission failure on the second
segment's open was counted as unavailable, and any equal device/inode
pair dropped the segment even when the current path still named the
file already read, because the 64-bit Windows file ID is not unique.
Retry the documented Windows transient open codes on a bounded
exponential delay, and deduplicate a segment only when the current
segment path stopped naming it. Both stats now come from bigint
stats so the exact file ID is compared.
The coverage test now asserts the whole collection result, so a
missing record also reports filesRead, bytesRead and unavailableFiles.
* feat(client): retain recent sessions and skip conversation folding while unrendered
* docs(notes): state that attention-protected recent views are unbounded
* refactor(ui-workspace): derive recent views from visit order and make the limit configurable
Recent views now hold exactly the Sessions one idempotent sync() selects from
the visit order and current snapshots, so navigation reports the shown Session
once and the main-view Session never counts. A failed Conversation resumption
leaves the binding stale so the next window change rebuilds the whole window.
* refactor(session-controller): report facet counts through retainInfo instead of SessionBinding
SessionBinding stays unchanged; SessionRetainInfo gains optional retainedFacets
counts beside retainedBy, and owners derive their facet from retainInfo and the
current binding. Adds the upgrade guide for Client plugins that render a Session
they retain, and updates two web e2e expectations: a recently viewed Session now
keeps its right Sidebar view state when the main view returns to it.
* feat(client): keep drafts with a connectionless Session hold and fold only the last page on return
Session references gain connection (true by default). When no reference keeps
it, the Session disconnects and empties its window while keeping its scope.
When the last facet is released, the Session keeps only its last Turn-aligned
page visible and its event stream buffers the older records, answering page
reads from that buffer before the Host. BoundConversation folds only while the
conversation facet is retained and drops its fold on release. The input hub
holds a Session with { source: 'draft', connection: false } while its draft has
attachments, replacing the root-level draft-attachment ownership; reload marks
remain.
* refactor(session-controller): share retain-info counting with the test fixture
* fix(client): keep gap repair, disconnect, and recent-view counting correct while Sessions are buffered
- Only page reads before the window take buffered records; a live gap repair
reads the Host.
- A resync whose teardown a disconnect interrupted stays cold.
- A Session the main view already retains takes no recent-view slot before
show(), so losing its unread protection during retention evicts nothing.
- Buffering marks the window partial, so the start-of-history marker survives
after the buffer runs out.
* fix(session-controller): consume an arrived older page before buffering the window
* feat(ui-workspace): sync the recent-view limit from the Host Config
recentViewLimit becomes a volatile field of the ui-workspace Host Config
(z.natural().default(10)). The browser receives it through synced plugin
configuration, and RecentSessionViews reconciles whenever it changes, so a
cordis.yml edit takes effect without a page reload. Until a value arrives,
every counted recent view is kept.
The package gains a Host compiler face: src/types.ts holds the shared
Config type, tsconfig.host.json and tsconfig.client.json replace the single
Client config, and every reference names the face it compiles against.
recentViewLimit becomes a volatile field of the ui-workspace Host Config
(z.natural().default(10)). The browser receives it through synced plugin
configuration, and RecentSessionViews reconciles whenever it changes, so a
cordis.yml edit takes effect without a page reload. Until a value arrives,
every counted recent view is kept.
The package gains a Host compiler face: src/types.ts holds the shared
Config type, tsconfig.host.json and tsconfig.client.json replace the single
Client config, and every reference names the face it compiles against.
SessionBinding stays unchanged; SessionRetainInfo gains optional retainedFacets
counts beside retainedBy, and owners derive their facet from retainInfo and the
current binding. Adds the upgrade guide for Client plugins that render a Session
they retain, and updates two web e2e expectations: a recently viewed Session now
keeps its right Sidebar view state when the main view returns to it.