Skip to content

fix(desktop): keep new-session welcome and model labels stable - #157

Merged
SivanCola merged 1 commit into
mainfrom
codex/stable-new-session-welcome
Nov 4, 2026
Merged

SivanCola merged 1 commit into
mainfrom
codex/stable-new-session-welcome

Conversation

@SivanCola

Copy link
Copy Markdown
Owner

Summary

New sessions briefly showed a bottom-aligned composer without the welcome heading or workspace selector, then jumped to the centered welcome layout when the controller finished starting. The model label could also expose a long connection reference during startup.

  • Keep readable empty sessions in the welcome layout while the runtime starts; history loading, failures, existing content, and pending decisions retain their own surfaces. Sending remains disabled until ready.
  • Resolve configured model labels consistently before and after boot, including new-session reservation, fallback, and blank-session reuse. Preserve slashes inside model IDs and runtime-owned composite labels.
  • Scope model catalogs and delayed results to the selected tab/session so new sessions never briefly display the previous session's model. Models without friendly names display their model ID instead of the qualified connection reference.

修复新建会话初始化期间的布局跳变和模型名称变化,并覆盖会话切换、延迟目录响应、草稿保留及乱序初始化完成场景。

Verification

  • Frontend production build, hook lint, typecheck, CSS/layer/scroll-writer contracts, and bundle budgets passed.
  • pnpm test:transcript: 34/34 commands passed.
  • pnpm test:session-loading-browser: loading feedback, new-session creation, and recovery suites passed in Chromium.
  • Model-switcher and session-recovery regression tests passed, including delayed catalog responses and startup/history error boundaries.
  • Desktop Go tests passed for manual creation, blank-session reuse, model fallback, configured model metadata, and stable startup labels.
  • Browser assertions verify the welcome heading/workspace bar before readiness, stable composer width/horizontal position and model text after readiness, disabled early sending, draft retention, and out-of-order completion isolation.

Documentation and compatibility

No persisted schema, provider routing ID, plugin protocol, or public API changes. This changes presentation during runtime startup; it does not remove initialization work or claim to diagnose the reporter's startup duration.

Related issues

User-reported new-session layout and model-label flicker; no linked issue.

@SivanCola
SivanCola merged commit 819930e into main Nov 4, 2026
21 checks passed
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