@profoundlogic/coderflow-cli 0.9.2 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,7 +87,7 @@ export async function attachToContainer(args = []) {
87
87
  } else if (agentOverride) {
88
88
  // Override the default agent with resume
89
89
  if (agentOverride === 'claude') {
90
- cmd = 'cd /workspace && claude --resume';
90
+ cmd = 'cd /workspace && SESSION_ID=$(grep \'"type":"result"\' /task-output/debug-stream.jsonl 2>/dev/null | tail -1 | jq -r \'.session_id // empty\' 2>/dev/null) && if [ -n "$SESSION_ID" ]; then claude --resume "$SESSION_ID"; else claude --resume; fi';
91
91
  descriptiveAction = 'Resuming with Claude';
92
92
  } else if (agentOverride === 'codex') {
93
93
  cmd = 'cd /workspace && codex resume';
@@ -101,7 +101,7 @@ export async function attachToContainer(args = []) {
101
101
  // Use the default agent from container with resume
102
102
  const agent = containerInfo.defaultAgent || 'claude';
103
103
  if (agent === 'claude') {
104
- cmd = 'cd /workspace && claude --resume';
104
+ cmd = 'cd /workspace && SESSION_ID=$(grep \'"type":"result"\' /task-output/debug-stream.jsonl 2>/dev/null | tail -1 | jq -r \'.session_id // empty\' 2>/dev/null) && if [ -n "$SESSION_ID" ]; then claude --resume "$SESSION_ID"; else claude --resume; fi';
105
105
  descriptiveAction = 'Resuming with Claude';
106
106
  } else if (agent === 'codex') {
107
107
  cmd = 'cd /workspace && codex resume';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profoundlogic/coderflow-cli",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "AI Coder CLI - Command-line interface for managing AI coding tasks",
5
5
  "main": "coder.js",
6
6
  "type": "module",