Skip to content

fix(server): narrow terminal size types after validation#1

Open
RonanKMcGovern wants to merge 2 commits intoricklamers:mainfrom
TrelisResearch:fix/typescript-terminal-size-types
Open

fix(server): narrow terminal size types after validation#1
RonanKMcGovern wants to merge 2 commits intoricklamers:mainfrom
TrelisResearch:fix/typescript-terminal-size-types

Conversation

@RonanKMcGovern
Copy link
Copy Markdown

Summary

  • Fix TypeScript build errors in packages/server where cols and rows (typed number | undefined from request bodies) were passed to the daemon spawn message which requires number
  • The isValidTerminalSize() guard already validates them at runtime; added explicit as number casts so TypeScript accepts the assignment
  • Affects processes.ts (1 location) and worktrees.ts (3 locations)

Test plan

  • pnpm build passes with no errors
  • Verify spawn process, diff, merge, and agent-merge endpoints still work correctly

🤖 Generated with Claude Code

RonanKMcGovern and others added 2 commits March 3, 2026 14:13
The `cols` and `rows` fields from request bodies are typed as
`number | undefined`, but the daemon spawn message requires `number`.
`isValidTerminalSize()` already validates them at runtime; add explicit
casts so TypeScript accepts the assignment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Document the issues encountered during a fresh setup:
- node:sqlite requires --experimental-sqlite on Node 22-23
- daemon auth token configuration (env var and config file)
- CLAUDECODE env vars must be stripped when launching from Claude Code
- daemon --workspace flag needed to discover repos
- Makefile is Linux-only (ss/fuser)
- added troubleshooting table for common errors

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant