Skip to content

Commit d2b91ae

Browse files
committed
adjust agentapi terminal width and height
1 parent bd05d06 commit d2b91ae

File tree

1 file changed

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

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ resource "coder_script" "claude_code" {
171171
export LANG=en_US.UTF-8
172172
export LC_ALL=en_US.UTF-8
173173
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'
175177
echo "Waiting for agentapi server to start on port 3284..."
176178
for i in $(seq 1 15); do
177179
if lsof -i :3284 | grep -q 'LISTEN'; then
@@ -260,7 +262,9 @@ resource "coder_app" "claude_code" {
260262
261263
if ! tmux has-session -t claude-code-agentapi 2>/dev/null; then
262264
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'
264268
fi
265269
266270
if tmux has-session -t claude-code 2>/dev/null; then

0 commit comments

Comments
 (0)