Repository navigation
feat(ai): unify conversation process display across Web and ACP - #352
Merged
Merged
Conversation
Use the same public tool facts for live and committed conversation views. Keep local session admission at the existing SQLite owner boundary.
Import the shared tool projection only when a receiver has a tool notice. Keep Web shutdown graceful and report SIGINT consistently even when the server returns without replaying the signal.
Project workspace-relative session directories into absolute ACP coordinates, use the same logical filter, and validate incoming paths before creating or replaying a session. Exercise the actual ACP CLI over stdio.
Reuse the existing thinking stream and committed transcript text. Remove the unused reasoning-summary process path without changing provider or Runtime.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented
Local verification
aa06c908exercises the public prompt contract and keeps terminal/EOF/cancellation/CLI coverage. 49 focused ACP and stream tests passed; replacement CI passed 15/15. Both affected test shards skipped the 16 real-protocol cases because the optional ACP dependency was absent in CI; the local ACP package run is separate, and target-client compatibility has not been verified.Review follow-up
05cbedea: architecture gate and 119 focused Python tests with the optional ACP SDK present; 21 browser DOM scenarios passed. The real SDK regression releases the first-declared tool only after the second has finished, then compares live positions to committed History. Hosted CI for this exact head passed 15/15.Cross-process milestone notices (
39bc84e1)CI follow-up (
6137a429)39bc84e1failed: the notice receiver's eager import loaded execution dependencies during CLI help and during subprocess-only SQLite metrics initialization. The receiver now imports the projector at the tool-notice boundary. No SQLite, lock or storage changes were needed.ACP workspace discovery (
74f558d1)cwdover ACP and disappeared under an absolute directory filter; a native ACPsession/newwith an absolute subdirectory failed.lt ai acpstdio command verifies list → load for Web default/root/nested sessions and ACP creation, with exactly one committed question/answer replay, no replay on mismatch, and rejection of outside paths including a symlink. Architecture passed; 17 targeted tests passed with the optional ACP SDK, and the dependency-absent run passed 50 with 4 expected skips. This exercises protocol stdio, not an actual editor or macOS.Conversation display scope (
78e00a68)Trace replay compiled cache (
a00416c)Reuse the Trace store's existing admission table object for Trace pages and history association queries. No SQL shape, schema, or cache setting changed. The SQLite replay regression performs eight rounds of both reads with alternating bounds and verifies unchanged results, two initial cache misses followed by 14 hits. Architecture and 88 focused tests passed; hosted CI covers this head. This measures cache reuse, not production memory.
Web and ACP review follow-up (
da245b8)Host turn observer (
28eef70)Expose
runtime.sessions.observe_turns(handler)andSessionTurnNoticeas a transport-neutral, best-effort source-side callback. The trusted host schedules its own delivery and unsubscribes with the returned function. No ownership, remote subscription or replay is inferred from a notice. No SQL or transport changes. The regression covers owned SQLite, memory, a borrowed SQL engine (SQLite in test), and built-in source coordination with a borrowed engine. Architecture and 44 focused tests passed. Hosted CI is separate.Native snapshot and batch compilation (
5bf3526)Reuse the existing bounded family of Native message/snapshot SQL descriptors across export, restore and offline object cleanup. Repeated export hits the compile cache for both unchanged Native reads and returns the same snapshot. Group record reads use existing exact bind-budget batching without a second compilation per batch. Offline dialect tests verify the 999-bind bound with all physical owners; other shape-sensitive guards remain. No DDL, transaction or round-trip change. Architecture and 56 combined focused tests passed. Current CI.