Skip to content

feat(connect): polish sign-in steps, resize large dialogs, add unpaid picker and ChatGPT usage limits - #253

Merged
Hona merged 1 commit into
devfrom
ws5/connect-overhaul
Nov 20, 2026
Merged

Hona merged 1 commit into
devfrom
ws5/connect-overhaul

Conversation

@Hona

@Hona Hona commented Nov 20, 2026

Copy link
Copy Markdown
Member

Summary

Ports upstream #63829 (UP-002), #64882 (UP-080), #64927 (UP-084), and #64926 (UP-086):

  • Dialog sizes & .search-dialog headers (#64882):
    • Narrows DialogSize::Large from 720 to 680 wide (680 × 600), removes Fit::Anchored, resizes Connect to DialogSize::Large, aligns .search-dialog headers to 14/16/8 with 13 pt descriptions, and updates Manage models search spacing (px(8), h(32), mt(8) hairline, mr(-2) connect button).
  • Connect sign-in polish (#63829):
    • Unifies right-aligned StepActions footers across failed, console no-models, Claude Agent, OAuth, and form steps.
    • Enlarges Console device code digits to 28 pt, refines method selection rows to 32 pt with leading method icons and hover-revealed chevrons, adds top/bottom hairline dividers around the OAuth redirect-paste section, and shows copy feedback for non-secret device codes/commands.
  • Popular order & unpaid free-model picker (#64927):
    • Reorders Connect Popular to place opencode-go ahead of opencode with taglines/notes (omitted when a provider is disabled/environment-only).
    • Adds DialogSelectModelUnpaid (features/connect/src/unpaid.rs, DialogSize::Large) opened from the model picker when no paid provider is connected and free models exist, with light/dark featured provider cards and keyboard navigation.
  • ChatGPT usage limit & Business workspace-admin dialog (#64926):
    • Adds DialogChatGPTUsageLimit (features/connect/src/usage_limit.rs, DialogSize::Normal) with a 24 h persisted throttle in opencode.global.dat.
    • Shows the personal limit dialog (Manage usage) on provider.chatgpt-limit (including older servers) and the Business workspace-admin variant (Copy request for admin with copied status and selectable fallback) on provider.chatgpt-workspace-limit.

Verification

  • pwsh scripts/guardrails.ps1 (5/5 incl. dialog-size.sh), pwsh scripts/web.ps1 -Check (wasm32 + web-clock), and cargo check --workspace --all-targets green.
  • Driven end-to-end against a mock OpenCode HTTP/SSE server: unpaid free-model picker at 680 px -> Connect dialog at 680 px -> opencode-go above opencode with taglines & disabled-row omission -> 32 pt OpenAI method rows with breadcrumbs -> personal ChatGPT limit (openExternal + 24 h SQLite throttle) -> Business workspace limit (Copy request for admin staying open with copied feedback).
  • Verified light & dark captures at 1x and 1.5x across unpaid-models, connect-picker, connect-methods, connect-failed, connect-models, chatgpt-usage-limit, and chatgpt-workspace-usage-limit (idle/copied/failed).
  • Not proved: Real live account OAuth / paid OpenAI / ChatGPT Business server flows (verified against simulated mock responses matching upstream error shapes).

… picker and ChatGPT usage limits

Port upstream #63829 (`UP-002`), #64882 (`UP-080`), #64927 (`UP-084`), and
#64926 (`UP-086`):

- **Dialog sizes & search headers (`#64882`):** Narrow `DialogSize::Large`
  from 720 to 680 wide (`680 × 600`), remove `Fit::Anchored`, resize Connect
  to `DialogSize::Large`, align `.search-dialog` headers to 14/16/8 with
  13 pt descriptions, and update Manage models search padding (`px(8)`,
  `h(32)`, `mt(8)` hairline, `mr(-2)` connect button).
- **Connect sign-in polish (`#63829`):** Unify right-aligned `StepActions`
  footers across failed, console no-models, Claude Agent, OAuth, and form
  steps; enlarge Console device code digits to 28 pt; refine method rows to
  32 pt with leading method icons and hover-revealed chevrons; add top/bottom
  hairline dividers around the OAuth redirect-paste toggle and copy toasts
  for non-secret codes/commands.
- **Popular order & unpaid free-model picker (`#64927`):** Reorder Connect's
  Popular group to put `opencode-go` ahead of `opencode` with taglines/notes
  (omitted on disabled environment-only rows); add `DialogSelectModelUnpaid`
  (`features/connect/src/unpaid.rs`) opened when no paid provider is
  connected and free models exist, with light/dark featured provider cards.
- **ChatGPT usage limit & Business workspace-admin dialog (`#64926`):** Add
  `DialogChatGPTUsageLimit` (`features/connect/src/usage_limit.rs`) using
  `DialogSize::Normal`, with 24 h persisted throttle in `opencode.global.dat`,
  personal limit fallback on `provider.chatgpt-limit` (older servers), and
  workspace-admin copyable request with copied/fallback states on
  `provider.chatgpt-workspace-limit`.
@Hona
Hona merged commit 1b37bcc into dev Nov 20, 2026
6 checks passed
@Hona
Hona deleted the ws5/connect-overhaul branch November 20, 2026 08:13
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

Hona added a commit that referenced this pull request Nov 20, 2026
…ing (#266)

- Fold verified fleet PRs #247, #251, #252, #253, #254, #255, #256, #257,
  #258, #260, #261, #262, #263, #264, and #265 (Rune #1290 PRE-11 / #1296)
  into docs/upstream-sync/ledger.{json,md}
- Audit upstream anomalyco/opencode through 92d35f8e18 (+9 commits past
  bf683129fa), adding UP-107..UP-113 and assigning UP-106/UP-108/UP-111 to
  BROWSER-UI
- Update scripts/upstream-sync-check.ts to skip pure *.fixture.* test files
  and route browser UI/history vs extensions commits to BROWSER-UI and WS-9
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