fix: parliament UX, prompt alignment, execution nudges (0.9.14)

Inject shared parliament context into the agent environment, switch
prompts away from in-process workers when parliament is active, clear
login tickets on chair sync/new-project, and surface realm/chair/service
in /status. Tighten empty-reply handling and prefer-tool principles.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WHC
2026-10-29 10:22:31 +08:00
co-authored by Cursor
parent be8d021480
commit 9c6257fc96
9 changed files with 207 additions and 40 deletions
+5 -3
View File
@@ -684,7 +684,7 @@ int main(int argc, char **argv) {
: getenv("CST_INSTANCE_ID");
if (!iid || !iid[0])
iid = "chair-local";
int rc = cst_parliament_cli_login(pw, iid, realm_label);
int rc = cst_parliament_cli_login(pw, iid, realm_label, discover_peer_port);
curl_global_cleanup();
return rc;
}
@@ -769,8 +769,10 @@ int main(int argc, char **argv) {
return 1;
}
free(hand);
(void)cst_parliament_daemon_start(pw, iid, discover_peer_port, err,
sizeof(err));
if (cst_parliament_daemon_start(pw, iid, discover_peer_port, err,
sizeof(err)) != 0)
fprintf(stderr, "warning: parliament service: %s\n",
err[0] ? err : "start failed");
} else {
fprintf(stderr,
"password Realm active: run --login (or set "