Skip to content

fix(web): show actual selected model for sessions#269

Draft
webwww123 wants to merge 1 commit intotiann:mainfrom
webwww123:feat/session-actual-model-label
Draft

fix(web): show actual selected model for sessions#269
webwww123 wants to merge 1 commit intotiann:mainfrom
webwww123:feat/session-actual-model-label

Conversation

@webwww123
Copy link

Summary

  • persist the actual selected model in session metadata when a Codex session is spawned
  • show that actual model in the session list and session header instead of always falling back to default
  • keep the fallback to modelMode for sessions that do not store a concrete model

Why

Issue #267 reports that creating a Codex session with gpt-5.4 still shows model: default in the web UI. This PR addresses the confusing display part.

I intentionally did not bundle Codex effort controls into this PR, because that requires additional hub / session-config plumbing and is better handled separately.

Validation

  • docker run --rm -v /root/sandbox/hapi-pr:/workspace -w /workspace oven/bun:1 sh -lc "bun install && cd cli && bun run typecheck && cd /workspace/web && bunx vitest run src/lib/sessionModelLabel.test.ts && bun run typecheck"

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