fix: clear reasoning file before writing to it
This commit is contained in:
parent
ebbdda2853
commit
e35e32f396
1 changed files with 3 additions and 1 deletions
|
|
@ -5,7 +5,8 @@ import styles from "ansi-styles";
|
||||||
import { supportsColorStderr } from "chalk";
|
import { supportsColorStderr } from "chalk";
|
||||||
|
|
||||||
const home = os.homedir();
|
const home = os.homedir();
|
||||||
const reasoningWriter = Bun.file(`${home}/.aicl_reasoning.md`).writer();
|
const reasoningFile = Bun.file(`${home}/.aicl_reasoning.md`);
|
||||||
|
const reasoningWriter = reasoningFile.writer();
|
||||||
|
|
||||||
export default class StreamRenderer {
|
export default class StreamRenderer {
|
||||||
private lineCount = 0;
|
private lineCount = 0;
|
||||||
|
|
@ -68,6 +69,7 @@ export default class StreamRenderer {
|
||||||
process.stderr,
|
process.stderr,
|
||||||
);
|
);
|
||||||
this.write("\n", process.stderr);
|
this.write("\n", process.stderr);
|
||||||
|
reasoningFile.write("");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "reasoning-delta": {
|
case "reasoning-delta": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue