Skip to content

banner shows concrete OpenAI wire variant - #552

Merged
smallnest merged 1 commit into
masterfrom
feat/issue-544-banner-variant
Aug 2, 2026
Merged

banner shows concrete OpenAI wire variant#552
smallnest merged 1 commit into
masterfrom
feat/issue-544-banner-variant

Conversation

@smallnest

Copy link
Copy Markdown
Owner

Summary

  • Add presentation-only ProtocolLabel in internal/provider/protocol.go mapping a raw --protocol value to the human-facing banner label
  • Bare openai and openai/chat both surface as openai/chat (explicit Chat Completions); openai/resp_api and anthropic pass through; empty stays empty (banner falls back to )
  • Banner Protocol row now calls provider.ProtocolLabel(opts.Protocol); the functional protocol string feeding LiveConfig/subagent resolution is untouched
  • Table test covers all variants

Closes #544

Test plan

  • go build ./...
  • go vet ./internal/provider/ ./internal/cli/tui/
  • go test ./internal/provider/ ./internal/cli/tui/
  • gofmt -l clean

Add presentation-only ProtocolLabel so the startup banner's Protocol
row reflects the actual wire format: bare "openai" surfaces as
"openai/chat", "openai/resp_api" passes through. The functional
protocol string feeding LiveConfig/subagent resolution is unchanged.
@smallnest
smallnest merged commit 0745850 into master Aug 2, 2026
1 check passed
@smallnest
smallnest deleted the feat/issue-544-banner-variant branch August 2, 2026 03:55
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.

Banner + 配置显示所选 OpenAI wire 变体

1 participant