Skip to content

fix(bots): refresh bot creation and use current connections - #93

Merged
nixuuu merged 1 commit into
devfrom
fix/bots-wizard-refresh
Nov 4, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/bots-wizard-refresh

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 4, 2026

Copy link
Copy Markdown
Member

Fixes from testing bots on desktop nightly.32.

  • Sidebar freeze: "Create your first bot" in the sidebar froze the app through a shallow-navigation reactive cycle. Fixed; both entry points open the wizard the same way.
  • Stale providers: the wizard refreshes provider definitions and model catalogs when it opens and on configuration changes, with loading and error states instead of an empty list.
  • Eligibility by connection: bots decide by an instance's current connection (proxy/endpoint vs Device login), not by the id 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.
  • Labels: Settings → Workers provider chips and the built-in instance's display-name placeholder follow the current connection (no "Native" / "Device login" for a proxy).

Fixes: #85
Fixes: #72

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
nixuuu added this pull request to stack #95 November 4, 2026 20:18
@nixuuu
nixuuu marked this pull request as ready for review November 4, 2026 20:21
@nixuuu
nixuuu merged commit 1db7bfb into dev Nov 4, 2026
10 checks passed
@nixuuu
nixuuu deleted the fix/bots-wizard-refresh branch 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.
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