File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
registry/coder/modules/claude-code Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,9 @@ resource "coder_script" "claude_code" {
171
171
export LANG=en_US.UTF-8
172
172
export LC_ALL=en_US.UTF-8
173
173
174
- tmux new-session -d -s claude-code-agentapi -c ${ var . folder } 'agentapi server -- bash -c "claude --dangerously-skip-permissions \"$CODER_MCP_CLAUDE_TASK_PROMPT\" | tee -a \"$HOME/.claude-code.log\""; exec bash'
174
+ # use low width to fit in the tasks UI sidebar. height is adjusted to ~match the default 80k (80x1000) characters
175
+ # visible in the terminal screen.
176
+ tmux new-session -d -s claude-code-agentapi -c ${ var . folder } 'agentapi server --term-width 56 --term-height 1425 -- bash -c "claude --dangerously-skip-permissions \"$CODER_MCP_CLAUDE_TASK_PROMPT\" | tee -a \"$HOME/.claude-code.log\""; exec bash'
175
177
echo "Waiting for agentapi server to start on port 3284..."
176
178
for i in $(seq 1 15); do
177
179
if lsof -i :3284 | grep -q 'LISTEN'; then
@@ -260,7 +262,9 @@ resource "coder_app" "claude_code" {
260
262
261
263
if ! tmux has-session -t claude-code-agentapi 2>/dev/null; then
262
264
echo "Starting a new Claude Code agentapi tmux session." | tee -a "$HOME/.claude-code.log"
263
- tmux new-session -d -s claude-code-agentapi -c ${ var . folder } 'agentapi server -- bash -c "claude --dangerously-skip-permissions | tee -a \"$HOME/.claude-code.log\""; exec bash'
265
+ # use low width to fit in the tasks UI sidebar. height is adjusted to ~match the default 80k (80x1000) characters
266
+ # visible in the terminal screen.
267
+ tmux new-session -d -s claude-code-agentapi -c ${ var . folder } 'agentapi server --term-width 56 --term-height 1425 -- bash -c "claude --dangerously-skip-permissions | tee -a \"$HOME/.claude-code.log\""; exec bash'
264
268
fi
265
269
266
270
if tmux has-session -t claude-code 2>/dev/null; then
You can’t perform that action at this time.
0 commit comments