Skip to content

Commit c301da7

Browse files
committed
remove tee pipes - they make claude ignore actual terminal width and render 80 char lines
1 parent 7d64e7e commit c301da7

File tree

1 file changed

+2
-2
lines changed
  • registry/coder/modules/claude-code

1 file changed

+2
-2
lines changed

registry/coder/modules/claude-code/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ resource "coder_script" "claude_code" {
173173
174174
# use low width to fit in the tasks UI sidebar. height is adjusted to ~match the default 80k (80x1000) characters
175175
# visible in the terminal screen.
176-
tmux new-session -d -s claude-code-agentapi -c ${var.folder} 'agentapi server --term-width 67 --term-height 1190 -- bash -c "claude --dangerously-skip-permissions \"$CODER_MCP_CLAUDE_TASK_PROMPT\" | tee -a \"$HOME/.claude-code.log\""; exec bash'
176+
tmux new-session -d -s claude-code-agentapi -c ${var.folder} 'agentapi server --term-width 67 --term-height 1190 -- bash -c "claude --dangerously-skip-permissions \"$CODER_MCP_CLAUDE_TASK_PROMPT\""; exec bash'
177177
echo "Waiting for agentapi server to start on port 3284..."
178178
for i in $(seq 1 15); do
179179
if lsof -i :3284 | grep -q 'LISTEN'; then
@@ -264,7 +264,7 @@ resource "coder_app" "claude_code" {
264264
echo "Starting a new Claude Code agentapi tmux session." | tee -a "$HOME/.claude-code.log"
265265
# use low width to fit in the tasks UI sidebar. height is adjusted to ~match the default 80k (80x1000) characters
266266
# visible in the terminal screen.
267-
tmux new-session -d -s claude-code-agentapi -c ${var.folder} 'agentapi server --term-width 67 --term-height 1190 -- bash -c "claude --dangerously-skip-permissions | tee -a \"$HOME/.claude-code.log\""; exec bash'
267+
tmux new-session -d -s claude-code-agentapi -c ${var.folder} 'agentapi server --term-width 67 --term-height 1190 -- bash -c "claude --dangerously-skip-permissions"; exec bash'
268268
fi
269269
270270
if tmux has-session -t claude-code 2>/dev/null; then

0 commit comments

Comments
 (0)