clawforge-cli 1.5.2__tar.gz → 1.5.4__tar.gz

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.
Files changed (145) hide show
  1. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/CHANGELOG.md +17 -0
  2. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/Formula/clawforge.rb +3 -1
  3. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/PKG-INFO +1 -1
  4. clawforge_cli-1.5.4/VERSION +1 -0
  5. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/spawn-agent.sh +4 -3
  6. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/package.json +1 -1
  7. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/pyproject.toml +1 -1
  8. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-dx.sh +3 -3
  9. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-observability.sh +1 -1
  10. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-power.sh +1 -1
  11. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-practical.sh +1 -1
  12. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-reliability.sh +1 -1
  13. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-web.sh +1 -1
  14. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/agent.go +3 -4
  15. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/dashboard.go +9 -6
  16. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/keybindings.go +14 -0
  17. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/model.go +14 -3
  18. clawforge_cli-1.5.2/VERSION +0 -1
  19. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/.github/workflows/ci.yml +0 -0
  20. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/.github/workflows/publish-npm.yml +0 -0
  21. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/.github/workflows/publish-pypi.yml +0 -0
  22. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/.github/workflows/update-homebrew.yml +0 -0
  23. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/.github/workflows/version-sync.yml +0 -0
  24. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/.gitignore +0 -0
  25. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/LICENSE +0 -0
  26. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/PRD-v05.md +0 -0
  27. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/PRD-v06.md +0 -0
  28. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/PRD-v07.md +0 -0
  29. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/README.md +0 -0
  30. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/SKILL.md +0 -0
  31. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/attach.sh +0 -0
  32. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/check-agents.sh +0 -0
  33. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/clawforge +0 -0
  34. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/clawforge-web +0 -0
  35. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/clean.sh +0 -0
  36. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/completions.sh +0 -0
  37. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/config.sh +0 -0
  38. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/conflicts.sh +0 -0
  39. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/cost.sh +0 -0
  40. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/dashboard.sh +0 -0
  41. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/deps.sh +0 -0
  42. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/diff.sh +0 -0
  43. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/doctor.sh +0 -0
  44. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/eval.sh +0 -0
  45. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/export.sh +0 -0
  46. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/history.sh +0 -0
  47. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/init.sh +0 -0
  48. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/learn.sh +0 -0
  49. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/logs.sh +0 -0
  50. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/memory.sh +0 -0
  51. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/merge-helper.sh +0 -0
  52. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/multi-review.sh +0 -0
  53. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/notify.sh +0 -0
  54. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/on-complete.sh +0 -0
  55. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/parse-cost.sh +0 -0
  56. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/pr.sh +0 -0
  57. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/profile.sh +0 -0
  58. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/replay.sh +0 -0
  59. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/resume.sh +0 -0
  60. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/review-mode.sh +0 -0
  61. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/review-pr.sh +0 -0
  62. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/routing.sh +0 -0
  63. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/scope-task.sh +0 -0
  64. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/sprint.sh +0 -0
  65. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/steer.sh +0 -0
  66. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/stop.sh +0 -0
  67. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/summary.sh +0 -0
  68. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/swarm.sh +0 -0
  69. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/templates.sh +0 -0
  70. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/bin/web.sh +0 -0
  71. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/clawforge/__init__.py +0 -0
  72. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/clawforge/cli.py +0 -0
  73. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/completions/_clawforge +0 -0
  74. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/completions/clawforge.bash +0 -0
  75. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/completions/clawforge.fish +0 -0
  76. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/config/defaults.json +0 -0
  77. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/config/prompt-templates/default.md +0 -0
  78. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/config/routing-defaults.json +0 -0
  79. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/IMPLEMENTATION-v04.md +0 -0
  80. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/PRD-v04.md +0 -0
  81. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/PUBLISHING-CHECKLIST.md +0 -0
  82. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/README.md +0 -0
  83. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/RELEASE.md +0 -0
  84. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/architecture.md +0 -0
  85. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/command-reference.md +0 -0
  86. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/configuration.md +0 -0
  87. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/dashboard.md +0 -0
  88. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/evaluation.md +0 -0
  89. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/faq.md +0 -0
  90. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/fleet-ops.md +0 -0
  91. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/getting-started.md +0 -0
  92. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/scenarios.md +0 -0
  93. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/troubleshooting.md +0 -0
  94. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/docs/workflow-modes.md +0 -0
  95. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/evals/run-log.example.jsonl +0 -0
  96. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/evals/run-log.schema.json +0 -0
  97. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/evals/scorecard.md +0 -0
  98. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/install.sh +0 -0
  99. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/lib/common.sh +0 -0
  100. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/lib/templates/bugfix.json +0 -0
  101. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/lib/templates/migration.json +0 -0
  102. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/lib/templates/refactor.json +0 -0
  103. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/lib/templates/security-audit.json +0 -0
  104. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/lib/templates/test-coverage.json +0 -0
  105. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/registry/conflicts.jsonl +0 -0
  106. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/registry/costs.jsonl +0 -0
  107. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/run-all-tests.sh +0 -0
  108. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-ci-loop.sh +0 -0
  109. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-clean.sh +0 -0
  110. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-cli.sh +0 -0
  111. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-conflicts.sh +0 -0
  112. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-cost.sh +0 -0
  113. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-dashboard.sh +0 -0
  114. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-deps.sh +0 -0
  115. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-eval.sh +0 -0
  116. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-foundation.sh +0 -0
  117. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-history.sh +0 -0
  118. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-init.sh +0 -0
  119. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-learn.sh +0 -0
  120. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-management.sh +0 -0
  121. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-memory.sh +0 -0
  122. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-merge.sh +0 -0
  123. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-modes.sh +0 -0
  124. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-multi-repo.sh +0 -0
  125. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-notify.sh +0 -0
  126. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-openclaw.sh +0 -0
  127. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-registry.sh +0 -0
  128. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-review.sh +0 -0
  129. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-routing.sh +0 -0
  130. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-scope.sh +0 -0
  131. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-spawn.sh +0 -0
  132. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-templates.sh +0 -0
  133. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-tui.sh +0 -0
  134. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tests/test-watch.sh +0 -0
  135. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/PRD.md +0 -0
  136. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/animation.go +0 -0
  137. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/filter.go +0 -0
  138. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/go.mod +0 -0
  139. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/go.sum +0 -0
  140. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/main.go +0 -0
  141. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/steer.go +0 -0
  142. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/tui/styles.go +0 -0
  143. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/web/go.mod +0 -0
  144. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/web/index.html +0 -0
  145. {clawforge_cli-1.5.2 → clawforge_cli-1.5.4}/web/main.go +0 -0
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.5.4 — TUI Attach + Agent Session Persistence
4
+
5
+ ### Fixed
6
+ - **Agent sessions stay alive after completion**: `spawn-agent.sh` now keeps the tmux session open after the agent finishes, so you can attach and review output via Enter key
7
+ - **Enter key handles missing sessions**: TUI gracefully handles dead/missing tmux sessions instead of silently failing
8
+ - **`--verbose` flag for claude**: Agent output is more visible when attached
9
+
10
+ ### Changed
11
+ - Spawn uses `claude --verbose -p` (still headless, but with visible progress) + session persistence (`read` prompt on completion)
12
+
13
+ ## v1.5.3 — TUI Fixes
14
+
15
+ ### Fixed
16
+ - **Init race**: agents now load instantly on startup (was showing "No agents found" for 2s due to value-receiver bug in Bubble Tea Init)
17
+ - **False failure**: running tasks no longer marked as `failed` when their tmux session hasn't spawned yet or agent runs headlessly
18
+ - **Unicode truncation**: status emoji and description text with multi-byte characters now truncate/pad correctly (rune-aware)
19
+
3
20
  ## v1.5.2 — Test Harness Stability
4
21
 
5
22
  ### Fixed
@@ -1,7 +1,9 @@
1
1
  class Clawforge < Formula
2
2
  desc "Multi-mode coding workflow CLI for orchestrating AI coding agents"
3
3
  homepage "https://github.com/cyperx84/clawforge"
4
- url "https://github.com/cyperx84/clawforge/archive/refs/tags/v1.5.1.tar.gz"
4
+ url "https://github.com/cyperx84/clawforge/archive/refs/tags/v1.5.3.tar.gz"
5
+ sha256 "2730fca0066fda9d3c864802c4346ab7c39d0daee39a254cc5cebd2694d4a1db"
6
+ sha256 "a026cb0df5b7c3efae439a9ca912e728843deb56c70441591c9064f81a1041ae"
5
7
  sha256 "27cca187828366d138dbde81f99f313e065c656be7073452ccc016eb5dba16db"
6
8
  sha256 "ce9da13357fc54d20e59da5851ac04a4ebbff071ec5a7ce1b17b0cbe877b3416"
7
9
  sha256 "050e1745af5f64fe017ecc8d533a7f653935b572f45f4c9766f5746a4b58b54e"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clawforge-cli
3
- Version: 1.5.2
3
+ Version: 1.5.4
4
4
  Summary: Multi-mode coding workflow CLI for orchestrating AI coding agents
5
5
  Project-URL: Homepage, https://github.com/cyperx84/clawforge
6
6
  Project-URL: Repository, https://github.com/cyperx84/clawforge
@@ -0,0 +1 @@
1
+ 1.5.4
@@ -220,11 +220,12 @@ fi
220
220
  # Kill existing session if present (idempotent)
221
221
  tmux kill-session -t "$TMUX_SESSION" 2>/dev/null || true
222
222
 
223
- # Build agent command
223
+ # Build agent command — interactive mode so tmux attach works
224
+ ESCAPED_PROMPT=$(echo "$FULL_PROMPT" | sed 's/"/\\"/g')
224
225
  if [[ "$RESOLVED_AGENT" == "claude" ]]; then
225
- AGENT_CMD="claude --model ${MODEL} --dangerously-skip-permissions -p \"$(echo "$FULL_PROMPT" | sed 's/"/\\"/g')\""
226
+ AGENT_CMD="claude --model ${MODEL} --dangerously-skip-permissions --verbose -p \"${ESCAPED_PROMPT}\"; echo; echo \"[ClawForge] Agent finished. Press Enter to close.\"; read"
226
227
  elif [[ "$RESOLVED_AGENT" == "codex" ]]; then
227
- AGENT_CMD="codex --model ${MODEL} --dangerously-bypass-approvals-and-sandbox \"$(echo "$FULL_PROMPT" | sed 's/"/\\"/g')\""
228
+ AGENT_CMD="codex --model ${MODEL} --dangerously-bypass-approvals-and-sandbox \"${ESCAPED_PROMPT}\"; echo; echo \"[ClawForge] Agent finished. Press Enter to close.\"; read"
228
229
  fi
229
230
 
230
231
  # Create tmux session and launch
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyperx/clawforge",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "Multi-mode coding workflow CLI for orchestrating AI coding agents",
5
5
  "bin": {
6
6
  "@cyperx/clawforge": "./bin/clawforge"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "clawforge-cli"
3
- version = "1.5.2"
3
+ version = "1.5.4"
4
4
  description = "Multi-mode coding workflow CLI for orchestrating AI coding agents"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -134,10 +134,10 @@ assert_contains "help shows Developer Experience" "Developer Experience" "$cli_h
134
134
  # Test 11: version
135
135
  echo "Test 11: version"
136
136
  version=$(cat "${SCRIPT_DIR}/../VERSION")
137
- if [[ "$version" == "1.5.2" ]]; then
138
- echo " ✅ version is 1.5.2"; PASS=$((PASS+1))
137
+ if [[ "$version" == "1.5.4" ]]; then
138
+ echo " ✅ version is 1.5.4"; PASS=$((PASS+1))
139
139
  else
140
- echo " ❌ version is $version, expected 1.5.2"; FAIL=$((FAIL+1))
140
+ echo " ❌ version is $version, expected 1.5.4"; FAIL=$((FAIL+1))
141
141
  fi
142
142
 
143
143
  echo ""
@@ -77,7 +77,7 @@ assert_contains "dashboard help shows p key" "preview" "$tui_help"
77
77
  # Test 7: version
78
78
  echo "Test 7: version"
79
79
  version=$(cat "${SCRIPT_DIR}/../VERSION")
80
- assert_eq "version is 1.5.2" "1.5.2" "$version"
80
+ assert_eq "version is 1.5.4" "1.5.4" "$version"
81
81
 
82
82
  echo ""
83
83
  echo "Results: $PASS passed, $FAIL failed"
@@ -121,7 +121,7 @@ assert_contains "help shows Power Features" "Power Features" "$cli_help"
121
121
  # Test 13: version
122
122
  echo "Test 13: version"
123
123
  version=$(cat "${SCRIPT_DIR}/../VERSION")
124
- assert_eq "version is 1.5.2" "1.5.2" "$version"
124
+ assert_eq "version is 1.5.4" "1.5.4" "$version"
125
125
 
126
126
  echo ""
127
127
  echo "Results: $PASS passed, $FAIL failed"
@@ -96,7 +96,7 @@ assert_contains "watch checks terminal states" "done|failed|timeout|cancelled" "
96
96
  # Test 9: version
97
97
  echo "Test 9: version"
98
98
  version=$(cat "${SCRIPT_DIR}/../VERSION")
99
- assert_eq "version is 1.5.2" "1.5.2" "$version"
99
+ assert_eq "version is 1.5.4" "1.5.4" "$version"
100
100
 
101
101
  echo ""
102
102
  echo "Results: $PASS passed, $FAIL failed"
@@ -96,7 +96,7 @@ assert_contains "help shows Reliability" "Reliability" "$cli_help"
96
96
  # Test 11: version bump
97
97
  echo "Test 11: version"
98
98
  version=$(cat "${SCRIPT_DIR}/../VERSION")
99
- assert_eq "version is 1.5.2" "1.5.2" "$version"
99
+ assert_eq "version is 1.5.4" "1.5.4" "$version"
100
100
 
101
101
  # Test 12: doctor --fix runs without errors
102
102
  echo "Test 12: doctor --fix"
@@ -107,7 +107,7 @@ assert_contains "help shows Web Dashboard" "Web Dashboard" "$cli_help"
107
107
  # Test 7: version
108
108
  echo "Test 7: version"
109
109
  version=$(cat "${SCRIPT_DIR}/../VERSION")
110
- assert_eq "version is 1.5.2" "1.5.2" "$version"
110
+ assert_eq "version is 1.5.4" "1.5.4" "$version"
111
111
 
112
112
  echo ""
113
113
  echo "Results: $PASS passed, $FAIL failed"
@@ -128,13 +128,12 @@ func LoadAgents() []Agent {
128
128
  Conflicts: conflicts[t.ID],
129
129
  }
130
130
 
131
- // Enrich status from tmux if task is "running".
131
+ // Enrich preview from tmux if task is "running".
132
132
  if a.Status == "running" && a.TmuxSession != "" {
133
- if _, ok := tmuxSessions[a.TmuxSession]; !ok {
134
- a.Status = "failed"
135
- } else {
133
+ if _, ok := tmuxSessions[a.TmuxSession]; ok {
136
134
  a.Preview = captureTmuxPreview(a.TmuxSession, previewLines)
137
135
  }
136
+ // Don't override status — tmux may not be up yet or agent runs headlessly.
138
137
  }
139
138
 
140
139
  if a.Cost == "" {
@@ -2,6 +2,7 @@ package main
2
2
 
3
3
  import (
4
4
  "fmt"
5
+ "unicode/utf8"
5
6
  "strings"
6
7
 
7
8
  "charm.land/lipgloss/v2"
@@ -199,21 +200,23 @@ func renderStatusBar(m Model) string {
199
200
  return statusBarStyle.Render(bar)
200
201
  }
201
202
 
202
- // truncate shortens a string to maxLen, adding "…" if needed.
203
+ // truncate shortens a string to maxLen runes, adding "…" if needed.
203
204
  func truncate(s string, maxLen int) string {
204
- if len(s) <= maxLen {
205
+ if utf8.RuneCountInString(s) <= maxLen {
205
206
  return s
206
207
  }
207
208
  if maxLen <= 1 {
208
209
  return "…"
209
210
  }
210
- return s[:maxLen-1] + "…"
211
+ runes := []rune(s)
212
+ return string(runes[:maxLen-1]) + "…"
211
213
  }
212
214
 
213
- // padRight pads a string with spaces to the given width.
215
+ // padRight pads a string with spaces to the given width (rune-aware).
214
216
  func padRight(s string, width int) string {
215
- if len(s) >= width {
217
+ n := utf8.RuneCountInString(s)
218
+ if n >= width {
216
219
  return s
217
220
  }
218
- return s + strings.Repeat(" ", width-len(s))
221
+ return s + strings.Repeat(" ", width-n)
219
222
  }
@@ -75,6 +75,20 @@ func handleKeyPress(m Model, msg tea.KeyPressMsg) (Model, tea.Cmd) {
75
75
  if session == "" {
76
76
  session = "clawforge-" + agent.ID
77
77
  }
78
+ // Check if tmux session exists before trying to attach
79
+ check := exec.Command("tmux", "has-session", "-t", session)
80
+ if err := check.Run(); err != nil {
81
+ // Session doesn't exist — show logs instead
82
+ logCmd := exec.Command("tmux", "show-buffer", "-b", session)
83
+ if logOut, logErr := logCmd.Output(); logErr == nil && len(logOut) > 0 {
84
+ m.showPreview = true
85
+ filtered := m.filteredAgents()
86
+ if m.selected < len(filtered) {
87
+ filtered[m.selected].Preview = string(logOut)
88
+ }
89
+ }
90
+ return m, nil
91
+ }
78
92
  cmd := exec.Command("tmux", "attach-session", "-t", session)
79
93
  return m, tea.ExecProcess(cmd, func(err error) tea.Msg {
80
94
  return attachDoneMsg{err}
@@ -9,6 +9,11 @@ import (
9
9
  // RefreshTickMsg triggers periodic data reload.
10
10
  type RefreshTickMsg time.Time
11
11
 
12
+ // InitialLoadMsg carries the first agent load so Init can return it as a Cmd.
13
+ type InitialLoadMsg struct {
14
+ Agents []Agent
15
+ }
16
+
12
17
  const refreshInterval = 2 * time.Second
13
18
 
14
19
  // Model is the top-level Bubble Tea model for the ClawForge TUI dashboard.
@@ -68,9 +73,11 @@ func (m Model) Init() tea.Cmd {
68
73
  if m.animating {
69
74
  return animationTick()
70
75
  }
71
- // No animation: load agents immediately and start refresh cycle.
72
- m.agents = LoadAgents()
73
- return refreshTick()
76
+ // No animation: load agents via command (Init has value receiver, can't mutate).
77
+ return tea.Batch(
78
+ func() tea.Msg { return InitialLoadMsg{Agents: LoadAgents()} },
79
+ refreshTick(),
80
+ )
74
81
  }
75
82
 
76
83
  // refreshTick returns a command that sends a RefreshTickMsg after refreshInterval.
@@ -100,6 +107,10 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
100
107
  }
101
108
  return m, nil
102
109
 
110
+ case InitialLoadMsg:
111
+ m.agents = msg.Agents
112
+ return m, nil
113
+
103
114
  case AnimationDoneMsg:
104
115
  // Animation was skipped via keypress — load agents and start refresh.
105
116
  m.agents = LoadAgents()
@@ -1 +0,0 @@
1
- 1.5.2
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes