diff options
| author | Castor Regex <[email protected]> | 2025-08-24 13:23:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-24 13:23:01 -0500 |
| commit | 2747a978c7df016780b9b65bc6602d47ad54d450 (patch) | |
| tree | 64c681b25f9f8fc1d9a2a5899cfc19ad2a115331 | |
| parent | 3f82a60986c6ab7b6519034b46b56ae603d8ecbb (diff) | |
feat(startup): create new chat with incrementing topic
| -rw-r--r-- | packages/cli/src/gemini.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/cli/src/gemini.tsx b/packages/cli/src/gemini.tsx index 3195a52c..9185b417 100644 --- a/packages/cli/src/gemini.tsx +++ b/packages/cli/src/gemini.tsx @@ -162,10 +162,8 @@ export async function main() { // Create a new chat on startup. try { - const countOutput = execFileSync('/home/jcarr/go/bin/regex', ['--count-auto'], { encoding: 'utf8' }); - const count = parseInt(countOutput.trim(), 10); - const topic = `Auto ${count + 1}`; - execFileSync('/home/jcarr/go/bin/regex', ['--new-chat', sessionId, topic]); + const topic = execFileSync('/home/jcarr/go/bin/regex', ['--get-next-auto-topic'], { encoding: 'utf8' }); + execFileSync('/home/jcarr/go/bin/regex', ['--new-chat', sessionId, topic.trim()]); } catch (e) { console.error(`Error creating new chat: ${e}`); } |
