Repository navigation
fix: don't pass --continue on first run #667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
e3e4650
e5f48e2
39e0fa3
b88c7a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -184,11 +184,10 @@ async function createSession( | |||||
| await tmux.executeTmux(`send-keys -t ${shellQuote(target)} ${shellQuote(cdCmd)} Enter`); | ||||||
|
|
||||||
| const agentName = basename(workspaceDir); | ||||||
| const continueName = sanitizeTeamName(windowName); | ||||||
| console.log(`Continuing session by name: ${continueName}`); | ||||||
| const cmd = buildClaudeCommand(windowName, systemPromptFile || undefined, continueName); | ||||||
| // First run — no session to continue, just start fresh with --name | ||||||
| const cmd = buildClaudeCommand(windowName, systemPromptFile || undefined, undefined); | ||||||
| await tmux.executeTmux(`send-keys -t ${shellQuote(target)} ${shellQuote(cmd)} Enter`); | ||||||
| console.log(`Started Claude Code as ${agentName}@${continueName} in ${workspaceDir}`); | ||||||
| console.log(`Started Claude Code as ${agentName} in ${workspaceDir}`); | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace Line 190 uses Proposed fix- console.log(`Started Claude Code as ${agentName} in ${workspaceDir}`);
+ process.stdout.write(`Started Claude Code as ${agentName} in ${workspaceDir}\n`);As per coding guidelines " 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| // Register interactive session so spawned agents can find the team-lead | ||||||
| await registerSessionInRegistry(sessionName, windowName, workspaceDir); | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hard-codes
continueNametoundefined, so everycreateSessionlaunch starts a fresh Claude conversation.createSessionruns any timetmux.findSessionByName(...)returns null (for example after a tmux server restart or if the session was killed), which means a latergenierun from the same directory can no longer resume the prior named session context. That contradicts the “only on first run” intent and regresses persistence for returning sessions.Useful? React with 👍 / 👎.