Skip to content

Add vision routing capacity statusline support#57

Draft
imblucase wants to merge 1 commit into
routatic:mainfrom
imblucase:codex/vision-context-statusline
Draft

Add vision routing capacity statusline support#57
imblucase wants to merge 1 commit into
routatic:mainfrom
imblucase:codex/vision-context-statusline

Conversation

@imblucase

Copy link
Copy Markdown

Summary

  • add request-local vision routing fixes and capability validation
  • add model capacity metadata, context-window filtering, and max_tokens clamping before upstream calls
  • add a redacted /statusline snapshot endpoint for local statusline integrations
  • improve token counting consistency for tools, thinking blocks, and conservative image accounting
  • add build info to health/startup paths and safer daemon process handling

Why

Claude Code can report a 1M context for its declared Anthropic model while oc-go-cc dynamically routes to OpenCode Go models with different context windows. The proxy needs to decide eligibility before streaming headers or upstream calls, and local statusline integrations need a safe source for the effective model/window.

Validation

  • go test ./...
  • go test -race ./...
  • oc-go-cc-vision.exe validate with local config
  • local smoke: over-context request returns 400 before upstream and /statusline reports skipped fallbacks

@imblucase imblucase changed the title [codex] Add vision routing capacity statusline support Add vision routing capacity statusline support May 26, 2026
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