Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"plugins": [
{
"name": "genie",
"version": "3.260318.5",
"version": "3.260318.6",
"source": "./plugins/genie",
"description": "Human-AI partnership for Claude Code. Share a terminal, orchestrate workers, evolve together. Brainstorm ideas, wish them into plans, make with parallel agents, ship as one team. A coding genie that grows with your project."
}
Expand Down
2 changes: 1 addition & 1 deletion openclaw.plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "genie",
"name": "Genie",
"description": "Skills, agents, and hooks for the Genie CLI terminal orchestration toolkit",
"version": "3.260318.5",
"version": "3.260318.6",
"configSchema": {
"type": "object",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automagik/genie",
"version": "3.260318.5",
"version": "3.260318.6",
"description": "Collaborative terminal toolkit for human + AI workflows",
"type": "module",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/genie/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genie",
"version": "3.260318.5",
"version": "3.260318.6",
"description": "Human-AI partnership for Claude Code. Share a terminal, orchestrate workers, evolve together. Brainstorm ideas, turn them into wishes, execute with /work, validate with /review, and ship as one team.",
"author": {
"name": "Namastex Labs"
Expand Down
2 changes: 1 addition & 1 deletion plugins/genie/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genie-plugin",
"version": "3.260318.5",
"version": "3.260318.6",
"private": true,
"description": "Runtime dependencies for genie bundled CLIs",
"type": "module",
Expand Down
7 changes: 3 additions & 4 deletions src/genie-commands/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore --continue for restarted tmux sessions

This hard-codes continueName to undefined, so every createSession launch starts a fresh Claude conversation. createSession runs any time tmux.findSessionByName(...) returns null (for example after a tmux server restart or if the session was killed), which means a later genie run 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 👍 / 👎.

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}`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Replace console.log in source TypeScript.

Line 190 uses console.log, which violates the source logging guideline for .ts files.

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 "**/*.ts: No console.log statements in source code (relaxed in test files)".

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
console.log(`Started Claude Code as ${agentName} in ${workspaceDir}`);
process.stdout.write(`Started Claude Code as ${agentName} in ${workspaceDir}\n`);
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/genie-commands/session.ts` at line 190, Replace the console.log call that
prints "Started Claude Code as ${agentName} in ${workspaceDir}" with the
project's structured logger (e.g., use the existing logger or processLogger
instance used elsewhere in session.ts) and log at an appropriate level (info).
Ensure you keep the same message and include agentName and workspaceDir
variables, and add/import the logger (or use the file's existing logger
variable) if it's not already present.


// Register interactive session so spawned agents can find the team-lead
await registerSessionInRegistry(sessionName, windowName, workspaceDir);
Expand Down
Loading