Per-session workspace folder + structural identity reminder
- At the first interaction the session name locks and a personal folder is created under the workspace root (default ~/.strata-ctl/<slug>, configurable via workspace_root); slug is filesystem-safe and unique. Stored in sessions.folder (idempotent migration).
- build_request always prepends a structural identity reminder ('Il tuo nome è X. La tua cartella personale è Y.') before the session SP — not an editable setting; gives the agent awareness of its workspace. router_with_store takes the workspace root. 114 tests green; verified live (folder created, name locked).
This commit is contained in:
1 parent
0568b92e06
commit
c199953927
6 files changed
+148
-14
No files matched your search
+1
-1
@@ -194,7 +194,7 @@ async fn serve(cfg: &Config, cli_host: Option<&str>, cli_port: Option<u16>) -> E
|
||||
if matches!(store.get_defaults(), Ok(None)) {
|
||||
let _ = store.set_defaults(&cfg.default_settings());
|
||||
}
|
||||
let app = router_with_store(svc, store, auth);
|
||||
let app = router_with_store(svc, store, auth, cfg.workspace_root());
|
||||
let host = cfg.bind_host(cli_host);
|
||||
let port = cfg.bind_port(cli_port);
|
||||
if !is_loopback_host(&host) && cfg.api_key.is_none() {
|
||||
|
||||
Reference in new issue
Block a user