Repository navigation
fix(bots): refresh bot creation and use current connections - #93
Merged
Merged
Conversation
Use one wizard entry path, remove the shallow-navigation effect cycle, refresh provider definitions and model catalogs, and show loading and disabled Device login states. Derive provider labels from the effective connection and route settings links to the selected instance. Fixes: #85 Fixes: #72 Refs: f1ef833
nixuuu
marked this pull request as ready for review
November 4, 2026 20:21
nixuuu
added a commit
that referenced
this pull request
Nov 9, 2026
## What changed Switching Threads ↔ Bots used to change the height of the centred Bots block when its loading text disappeared. The new-thread editor could also scroll its ancestors during autofocus, clipping the headline. Its Send slot started at the phone width and then measured the desktop width, moving both model pills by 4 px. - Share safe flex centring between the new-thread, Bots and new-side-thread screens. Short windows scroll downward with the heading visible. - Reserve one overlapping cell for Bots loading, setup and error messages, including their wrapped height. - Prevent editor autofocus from scrolling ancestors. Reserve responsive Send width, model/effort slots and the workspace/ref row before delayed Git data arrives. Existing thread composers use the same controls. Fixes: #93 Related: #375 ## Verification Passed `bun install`, `bun run typecheck`, `bun run lint`, `bun run format:check`, `bun run --filter @canopy/web build`, and `git diff --check`. No UI test suite was added. Full `check:tmp` is left to CI as requested. Checked the actual SvelteKit app in Chromium against a private disposable gateway/database. The catalog, provider availability, empty/populated bot list and Git refs used controlled browser response fixtures, with 500 ms catalog/list and 800 ms Git delays. Bot-chat and existing-thread routes loaded their real seeded history from the gateway. Preview automation could not connect, so the captures use local Chromium. Captured screenshots, Playwright trace screencasts and requestAnimationFrame geometry across three repeated round trips per viewport, cold and warm catalogs, light/dark, phone/desktop, reduced motion, absent providers, load errors and long project/worker/model/branch names. No media or diagnostic scripts are committed. | Viewport/theme | New-thread heading top | Bots heading top | Model/effort movement during reload and remount | | --- | --- | --- | --- | | 1440×600, light | 175 px | 218 px | 0 px | | 1440×450, dark | 100 px | 143 px | 0 px | | 390×600, dark | 145 px | 196 px | 0 px | | 390×450, light, reduced motion, delayed Git | 72 px | 121 px | 0 px | Each heading value stayed constant across its captured frames, including Bots loading → loaded. The 390×450 delayed-Git capture kept a 450 px scroll area inside the 402 px available pane, starting at scrollTop 0. New-side-thread scrolling was also checked with the mouse wheel: its narrow pane scrolled from 0 to 4 px without horizontal overflow. Bots ↔ a bot chat and Threads ↔ an existing thread retained their route positions and stable composer slots. Model popovers and long labels were visually inspected at both widths. Evidence retained outside the repository: `1440x600-light-no-preference-trace.zip`, `1440x450-dark-no-preference-worktrees-trace.zip`, `390x600-dark-no-preference-trace.zip`, `390x450-light-reduce-worktrees-trace.zip`, matching frame JSON files and screenshots. These are local handoff artifacts, not GitHub attachments. Browser verification covers the shared web build; Electron itself was not launched. ## Copy audit Before → after: all UI strings remain unchanged. Loading, setup and error feedback now share a reserved status cell; the error appears below Create bot. Checked sentence case, glossary, action wording, error recovery, one primary action, non-colour status cues and truncation/wrapping with typical and long labels on desktop and phone. No new terms or “soul” copy.
This was referenced Nov 13, 2026
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.
Fixes from testing bots on desktop nightly.32.
native— since feat(providers): apply changes next turn and switch proxies in place #85 the built-in instance can be a proxy. Device-login instances appear disabled with the reason and a link to that instance's settings.Fixes: #85
Fixes: #72