Repository navigation
fix(desktop): provider URL truncation and text-input auto* defaults - #472
Merged
Merged
Conversation
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]>
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Two settings-page polish fixes, both desktop TS only:
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.
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.
TextInputnow defaultsautoCapitalize="none" / autoCorrect="off" / spellCheck={false}, with thetrailing 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 toTextInput(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 aremeaningless.
Verification
tsc --noEmit,eslint "src/**/*.{ts,tsx}",vitest run(687 tests) all pass🤖 Generated with Claude Code