aboutsummaryrefslogtreecommitdiff
path: root/modules/core/module-aiassist.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/module-aiassist.js')
-rw-r--r--modules/core/module-aiassist.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/core/module-aiassist.js b/modules/core/module-aiassist.js
index db4e691..09551c2 100644
--- a/modules/core/module-aiassist.js
+++ b/modules/core/module-aiassist.js
@@ -833,8 +833,9 @@ max_chars: { type: 'integer', description: 'Max characters of page content to re
const lockStart = Date.now();
while (!_agentTag && this._chatLock) {
if (Date.now() - lockStart > this._chatLockTimeoutMs) {
- throw new Error("chat lock busy after " + Math.round(this._chatLockTimeoutMs / 1000)
- + "s — refusing to release another turn's lock");
+ throw new Error("AI is still busy with another turn (waited "
+ + Math.round(this._chatLockTimeoutMs / 1000)
+ + "s). Wait for it to finish, or run 'ai-stop' and retry — the running turn's lock is left alone.");
}
await new Promise(r => setTimeout(r, 50));
}