ViteHub is still experimental. Expect bugs and breaking changes.

Troubleshooting

Diagnose common ViteHub development failures from symptoms to proof paths.

Troubleshooting starts from the failed proof path. Identify whether the failure comes from discovery, generated files, provider resources, Runtime Helpers, the CLI Dev Loop, Agent behavior, or host output before changing code.

Quick checks

SymptomFirst checkProof path
Definition is missingFile path and default export shapeFile conventions and .vitehub/**
Stable import failsVite Integration and generated TypeScript includesGenerated files
Provider build failsProvider Selection and required resource idsProvider output
Agent CLI cannot inspect or invokeRunning Vite server and hubAgent() registrationCLI
Agent changed behaviourAgent Eval result and Agent Usage RecordAgent Evals
Agent proof times outDev-loop --timeout, agent.eval.testTimeout, or stalled provider/session setupCLI and Agent Evals
Runtime error lacks contextPackage error family and diagnostics outputErrors and diagnostics

Discovery failures

Discovery Identity comes from the file location. Do not add inline ids to force a name; move the file to the expected convention instead.

File tree
server/
  agents/
    support.ts
  queues/
    welcome-email.ts
  workspaces/
    docs.ts

If a package requires a direct default export of a Definition Boundary Helper, avoid named aggregate exports and local indirection. The direct export keeps Build-Extracted Definition Options inspectable.

Provider failures

Provider failures usually belong to one of three layers: missing provider credentials, missing Provision State, or invalid Provider Output. Dry-run provisioning first, then inspect generated host output.

Terminal
pnpm vitehub provision run --provider cloudflare --dry-run
pnpm build
find dist -maxdepth 4 -type f | sort

Agent failures

Separate Agent runtime failures from model behavior. Use vitehub agent dev to inspect one interactive Agent Invocation, then use Agent Evals when the failure is repeatable behavior. If the proof is timing out before it reaches the interesting failure, increase the dev-loop inactivity --timeout or the Agent Eval Runner agent.eval.testTimeout in vite.config.ts.

Terminal
pnpm vitehub agent eval server/agents/support.eval.ts --output .vitehub/evals/support.json

When the Agent Dev Loop reports Agent Invocation Stream timed out after <ms> of inactivity, first decide whether the streamed invocation is expected to stay silent longer than the default timeout. If so, rerun with vitehub agent dev --timeout <ms>. If the timeout is surprising, inspect the Agent Driver boundary and any Workspace or provider session setup before changing prompts. For Capability CLI and ! Workspace commands, the same option is a wall-clock command deadline because those operations do not emit Agent Invocation Stream events.

When to escalate

Escalate to the owning ViteHub package when the same failure reproduces outside application code. Include the smallest reproduction, the generated artifact that failed, and the narrow command that demonstrates the problem.

Next steps