* fix(subagent): restore shared concurrency guidance from #8698
Restore the change removed when master was rolled back.
Cherry-picked from 014aa1659bcd0ba3cf5d2b4c096773f01f56ec50.
* refactor(ui-tool): clarify subagent member parsing
The hover plus case measured where to drag in notes.txt while README.md
above it still drew the strip for the unchanged lines after its last
hunk. The strip leaves once the file's text was read for highlighting,
which moves the rows below it up by 26 pixels. When it left between the
press and the release, the drag crossed one more row and opened a
comment on L3-5 in place of L3-4. The case now waits for the strip to
leave before it measures.
The race is in the test on master too: with master's forge sources the
case failed 1 of 15 runs alone, and the strip left 60 to 357 ms before
the drag began.
Every saved viewed mark announced a review change, which dropped the
review threads kept for the change request and made each open changes
view read all viewed marks and all threads from the code host again.
The Host now keeps the viewed marks it read for a change request by head
commit, under the bounds the kept threads have. A mark saved through
ctx.forge at that head replaces the kept state of its file, and the kept
threads stay, since a viewed mark changes no thread. The read that
follows a save is answered from memory, so a save costs the provider's
write and no further read. The reader's refresh passes fresh and reads
the code host again, as it does for threads.
ReviewCache is generic over what it keeps and gains amend() for a write
whose effect on the kept read is known.
Change requests were read together only when they became due in the same
millisecond, so 14 list watches that drifted apart cost up to 415 brief
queries an hour in place of 30. A poll now also reads the change
requests past the midpoint of their wait, which brings them back into
one fetch. The default intervals become 15 seconds while checks run and
60 seconds otherwise. An unknown mergeability earns one poll at the
active interval; a change request that keeps reporting it waits the idle
interval. refresh() accepts maxAgeMs and then leaves a change request
alone whose poll is in flight or recent.
The panel, Session list, and review count streams close once the page
has been hidden for 30 seconds and reopen when it shows, so the Host
polls no code host for a page nobody sees.
A Session's panel keeps its last state, snapshots, and branch lookup
when its last follower leaves, and the next panel starts from them: it
publishes that state first and repeats neither the sign-in probe of a
ready host nor the branch lookup. Showing the panel and focusing the
window call the new revisit Remote, which reinspects the checkout and
polls only change requests whose latest poll is older than
statusMaxAgeMs; refresh stays the forced read a reader asks for. A
status read refused as unauthenticated on a host shown as ready probes
sign-in again, once per run of refusals. The changes view waits for the
first status of a panel stream before it reads a change request whose
entry shows a kept snapshot.
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
Keep the row-scoped key locator and the saved-notice wait. The base already carries the 10 s poll timeouts on the same assertions (e21776d781), so the merged test file matches the branch's version.
The editor closes before the save's reload lands, and an Edit press while the settings snapshot is loading is dropped. Wait for the saved notice, which that reload publishes, before asserting the row's key field is gone and reopening the card.
The save deletes the named credential before the profile write that restores native auth. Between the two writes google's row reports no usable provider, so ModelsSection mounts the DeepSeek first-run setup card, and its key field made the dialog-wide count 2. Scope the count to the edited provider's row and give the close a realistic poll timeout.
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.
Open caller-supplied content through the shared document renderer without depending on inline diagram visualization. Keep checkpoint reads tied to their optional preview-service activation and cover cancellation in both the service and the chat row.