4c14966ae3
The Pi Agent dockerfile templates created ~/.tmux.conf with a literal \n because the RUN command used single-quoted echo. Tmux never parsed the malformed line, so mouse mode stayed off. Without tmux mouse mode, mouse-wheel events in xterm.js fell back to Up/Down arrow keys and cycled shell command history instead of scrolling the terminal buffer. - Use printf '%s\n' to write real newlines in .tmux.conf. - Apply the same fix to the ranger rc.conf where the same bug existed. - Update tool-images/pi-agent.dockerfile and both affected alembic migration dockerfile strings. Quality gates: npm run typecheck, npm run lint, npm test -- --run (87 passed), py_compile on changed migrations. Refs: openspec/changes/fix-tmux-mouse-config
841 B
841 B
Fix tmux Mouse Mode Configuration in Pi Agent Images — Tasks
- Identify the literal
\nbug in.tmux.confcreation commands across Pi Agent dockerfiles and migrations. - Update
tool-images/pi-agent.dockerfileto useprintf '%s\n'for.tmux.confand rangerrc.conf. - Update
apps/api/alembic/versions/20260527160017_add_pi_agent_tool_type.pydockerfile string with the same fix. - Update
apps/api/alembic/versions/2026_05_28_add_tool_definition_manifests.pydockerfile string with the same fix. - Verify resulting Dockerfile commands produce valid multi-line config files.
- Run
npm run typecheckandnpm run lintinapps/web. - Run
npm test -- --runinapps/web(87 passed). - Verify Python migration files compile with
py_compile. - Update project maps for changed files.