Skip to content

fix(desktop): provider URL truncation and text-input auto* defaults - #472

Merged
tallcode merged 5 commits into
mainfrom
worktree-provider-url-truncate
Sep 3, 2026
Merged

tallcode merged 5 commits into
mainfrom
worktree-provider-url-truncate

Conversation

@tallcode

@tallcode tallcode commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Changes

Two settings-page polish fixes, both desktop TS only:

  1. Custom-provider row: truncate the base URL. The provider row rendered
    base URL and model count as one string, so a long URL (e.g. Azure) wrapped
    the count onto a second line. Now a truncating URL span plus a
    non-shrinking count span separated by a gap.

  2. Text inputs: auto attributes off by default, centralized in TextInput.*
    Technical fields (URLs, provider ids, keys, search queries) were getting
    autocorrected and red spellcheck squiggles. TextInput now defaults
    autoCapitalize="none" / autoCorrect="off" / spellCheck={false}, with the
    trailing prop spread letting a call site re-enable for special cases. The
    rename dialog and workspace-form inputs switched from drifted one-off raw
    <input>s to TextInput (adopting the standard h-9 / focus-ring look);
    thread search and the chat composer keep their existing explicit opts-out.
    Remaining raw <input>s are all checkboxes, where these attributes are
    meaningless.

Verification

  • tsc --noEmit, eslint "src/**/*.{ts,tsx}", vitest run (687 tests) all pass
  • Manually verified in a live desktop run (user-confirmed)

🤖 Generated with Claude Code

tallcode and others added 5 commits September 3, 2026 09:40
The custom-provider row rendered base URL and model count as one string,
so a long URL (e.g. Azure) wrapped the count onto a second line. Split it
into a truncating URL span plus a non-shrinking count span separated by a
gap.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Technical fields (URLs, provider ids, keys, search queries) were getting
autocorrected and red spellcheck squiggles. Turn both off globally:
spellcheck/autocorrect inherit from the html root, TextInput sets them
off by default for every standard input, and the two raw text inputs
(rename dialog, workspace display name) set them explicitly. The chat
composer and thread search already had them off.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The last two raw text inputs adopt the shared TextInput component, so
every standard input gets its auto* defaults from one place and the two
dialogs drop their drifted one-off styling (h-10/border-line, px-2/
focus:border-accent) for the design-system look.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…le lever

With every text-entry surface either on TextInput (defaults off) or
explicitly opted out (thread search, chat composer), the inherited
html-root attributes are redundant. TextInput's trailing prop spread
remains the one place to re-enable autocapitalize/autocorrect/spellcheck
for a special-case field.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@tallcode
tallcode enabled auto-merge (squash) September 3, 2026 02:03
@tallcode
tallcode merged commit f964f93 into main Sep 3, 2026
12 checks passed
@tallcode
tallcode deleted the worktree-provider-url-truncate branch September 3, 2026 02:05
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