fix: interactive Realm password, recoverable worker budget (0.9.15)
Prompt for Realm password when CST_REALM_PASSWORD is unset; map worker request-gate exhaustion to a clear budget error with partial progress; hard-skip identical tool failures after 3 tries. Add docs/parliament.md. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-2
@@ -1137,7 +1137,7 @@ int cst_llm_chat_stream(const cst_llm_request_t *req, char *err,
|
||||
|
||||
if (rep_dir && rep_dir[0]) {
|
||||
if (req->request_gate && !req->request_gate(req->request_gate_ud)) {
|
||||
snprintf(err, err_sz, "worker request budget exhausted");
|
||||
snprintf(err, err_sz, "budget: worker request budget exhausted");
|
||||
ret = -1;
|
||||
goto finish;
|
||||
}
|
||||
@@ -1158,7 +1158,7 @@ int cst_llm_chat_stream(const cst_llm_request_t *req, char *err,
|
||||
|
||||
for (int attempt = 0;; attempt++) {
|
||||
if (req->request_gate && !req->request_gate(req->request_gate_ud)) {
|
||||
snprintf(err, err_sz, "worker request budget exhausted");
|
||||
snprintf(err, err_sz, "budget: worker request budget exhausted");
|
||||
ret = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user