You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: v0.38 regression fixes — stale state, perf, status, model chain
Bucket 1: Windows stale localStorage crash (#300)
- chat/page.tsx: add one-time migration (codepilot:migration-038) that
clears stale last-model/last-provider-id on upgrade from <0.38
- chat/page.tsx: startup useEffect validates restored provider/model
against actual available data, falls back gracefully
- chat/page.tsx: provider-changed handler re-validates from API
Bucket 2: Mac chat slowness — Generative UI overhead (#299)
- widget-guidelines.ts: add WIDGET_SYSTEM_PROMPT_HINT (~180 chars) to
replace full WIDGET_SYSTEM_PROMPT (~1000 chars) in system prompt
- chat/route.ts: inject hint instead of full prompt — model loads full
guidelines on-demand via codepilot-widget MCP tool
- widget-guidelines.ts: MCP tool response now includes format rules
so nothing is lost when system prompt is shortened
- ~85% reduction in per-request system prompt overhead
Bucket 3: Windows Claude status false negative
- claude-status/route.ts: connected = !!version (not gated on Git Bash)
- claude-status/route.ts: add warnings[] array for non-blocking issues
- ConnectionStatus.tsx: Git Bash missing shows warning-yellow badge
instead of error-red disconnected
- ClaudeCodeCard.tsx: updated type for warnings field
Bucket 4: Provider/model chain gaps (#301, #296)
- providers/models/route.ts: synthesize model entries from all
role_models_json fields (default/reasoning/small/haiku/sonnet/opus)
so they appear in the chat picker
- provider-doctor.ts: new finding provider.no-models warns when a
provider has zero available models
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments