fix(coding): bound missing Pi settlement

This commit is contained in:
inman
2026-09-01 12:40:08 +08:00
parent 8062b45103
commit f1fd13a70f
6 changed files with 478 additions and 52 deletions

View File

@@ -426,7 +426,14 @@ class AgentThread {
this.emit(success(id, 'prompt'));
},
}).catch((error) => {
if (!accepted) this.emit(failure(id, 'prompt', error));
if (!accepted) {
this.emit(failure(id, 'prompt', error));
return;
}
this.emit({
type: 'makelore_thread_error',
code: 'PROMPT_FAILED_AFTER_ACCEPTANCE',
});
});
return undefined;
}
@@ -452,6 +459,7 @@ class AgentThread {
thinkingLevel: session.thinkingLevel,
isStreaming: session.isStreaming,
isCompacting: session.isCompacting,
retryAttempt: session.retryAttempt,
steeringMode: session.steeringMode,
followUpMode: session.followUpMode,
sessionFile: session.sessionFile,