Skip to content

fix(server): ComputerUseLeases.ts fits the code budget again - #1890

Merged
lidge-jun merged 1 commit into
devfrom
fix/computer-use-leases-budget
Oct 27, 2026
Merged

lidge-jun merged 1 commit into
devfrom
fix/computer-use-leases-budget

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

ComputerUseLeases.ts reached 1002 lines on dev, so the code-budget lint breaks CI for every branch based on it.

Move the live grant and grant-state queries, with their existing error class, into ComputerUseLeaseQueries.ts. The service is now 942 lines; its exports, SQL, tracing, and behavior stay the same. The budget baseline is unchanged.

Verification (all exit 0):

  • vp test run apps/server/src/cua: 930 passed, 2 existing skips (Computer use private mode is switched off; re-enable with a scoped unknown-focus rule #1695).
  • lockf -k /tmp/goat-heavy-check.lock vp run check:changed: format, lint, knip, GraphQL and affected typechecks passed; 620 selected tests passed, 2 existing skips and 1 existing todo.
  • node scripts/goat-rename.ts --check: no residue.
  • vp lint apps/server/src/cua (the repo equivalent of oxlint): no errors or code-budget findings.

NOT RUN: full repository suites, build, and real-client smoke tests; this refactor has no visible behavior change.

Model: gpt-6.1-sol via GOAT delegated task (Codex harness)

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