refactor: consolidate chat state and task bridges
Centralize session scope, chat projections and typed task bridges. Keep historical interaction replies authoritative and publish terminal state to subscribers. Validate Server contracts before replacing generated artifacts.
This commit is contained in:
@@ -122,7 +122,8 @@ bindings. Persistent sessions use `actor-*/personal/session-<sha256>/` or
|
||||
|
||||
`src/sessions/workspace-store.ts` owns chat directories and immutable ownership
|
||||
files. Inject the same store into metadata, UI state and transcript stores in
|
||||
`src/server.ts`. Keep `data/session-metadata/` as the owner/history index; new
|
||||
`src/server.ts`. Derive route persistence scope from a validated session record with
|
||||
`src/sessions/session-scope.ts`; UI state contexts require actor, project and session IDs. Keep `data/session-metadata/` as the owner/history index; new
|
||||
messages, transcripts and learning state go only to `chat/`. Preserve full identity checks on
|
||||
reads and lists, session filename collision rejection, and serialized ownership
|
||||
creation. Scope changes in the frontend start a new conversation and use
|
||||
|
||||
Reference in New Issue
Block a user