Skip to content

feat(connection): drop the pool size setting and the pool counter - #769

Merged
EVWorth merged 1 commit into
mainfrom
claude/hopeful-bardeen-1k4d1h
Oct 18, 2026
Merged

EVWorth merged 1 commit into
mainfrom
claude/hopeful-bardeen-1k4d1h

Conversation

@EVWorth

@EVWorth EVWorth commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Part of #731: the "revisit Max pool size" item.

Why

Editor tabs (#734), the agent and backups/restores (#732) now have connections of their own, so the profile's pool only carried schema browsing, dialogs and admin. Sizing it was no longer something a user could make a sensible choice about. DBeaver, DataGrip, Workbench, HeidiSQL and TablePlus don't expose a pool size or a pool counter, and the maintainer agreed to drop both.

Change

Backend (mas-core)

  • The interactive lane is a fixed INTERACTIVE_LANE_MAX = 3 connections, one kept open. One alone would let a slow information_schema read stall the schema tree.
  • ConnectionProfile.pool_min/pool_max are still stored and accepted, now #[serde(default)], so profiles from older builds load. Nothing reads them any more.
  • Removed: clamped_pool_sizing, POOL_MAX_LIMIT, PoolStats, ConnectionManager::pool_stats, and the pool_stats command.
  • The full-lane message no longer says to raise "Max pool size". It now says the schema browsing, dialogs and admin connections are busy, that editor tabs aren't affected, and what to wait for.

Frontend

  • Advanced tab: the Min/Max pool size fields and their validation (connection-validation.ts) are gone.
  • Status bar: the "pool n/m" counter is gone, along with the 3-second pool_stats polling in connectionHealthStore.
  • bindings.ts regenerated with just bindings.

Docs: FR-1.2.3 now describes a connection per purpose; ARCHITECTURE and TESTING_STRATEGY are updated to match.

Tests

  • Live, MySQL 8.0: full suite (mas-core, mas-admin, mas-mcp), 208 passed.
  • Live, MariaDB 11: connection_lanes, connection_health, editor_sessions, query_timeout and grid_edits pass.
    • a_stored_pool_size_is_ignored replaces the pool-stats and clamping tests. It checks that (20, 0), (1, 1000) and (1, 5) all connect with a lane of exactly INTERACTIVE_LANE_MAX.
    • Tests that assumed a profile-sized pool now fill the fixed lane instead: a_full_interactive_lane_counts_only_its_own_queries and a_tab_with_a_session_runs_while_the_shared_pool_is_full.
  • Rust unit tests: 258 pass. The 4 removed were the clamping tests.
  • Frontend:
    • tsc is clean, and vitest has 2966 passing.
    • The only failure is src/__tests__/main.test.tsx, which times out in my container on main too and passes in CI.
    • The new tests check that the Advanced tab and the status bar no longer mention a pool.
  • Linters and checks: clippy -D warnings, rustfmt, dprint, eslint, the vi.mock path check, and the documented-commands check are clean.

Next

One remaining #731 item, in a follow-up PR: give each agent session its own connection, and each backup/restore job its own connection, instead of the shared agent and job lanes.


Generated by Claude Code

Each editor tab, the agent and backups now have connections of their own
(#731), so the profile's pool only carried schema browsing, dialogs and
admin. Asking users to size it, and showing them its usage, had stopped
meaning anything; no other client does either.

- The interactive lane is a fixed INTERACTIVE_LANE_MAX (3) connections,
  one kept open. The profile's pool_min/pool_max are still stored and
  accepted, so profiles from older builds load, but are no longer read.
- The Advanced tab loses Min/Max pool size and their validation; the
  status bar loses the "pool n/m" counter and the pool_stats polling
  behind it.
- A full lane's message says what is busy and that editor tabs are not
  affected, rather than suggesting a setting that no longer exists.
- FR-1.2.3 now describes a connection per purpose.

Part of #731.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
@EVWorth
EVWorth merged commit 99ea6a1 into main Oct 18, 2026
12 checks passed
@EVWorth
EVWorth deleted the claude/hopeful-bardeen-1k4d1h branch October 18, 2026 22:57
EVWorth added a commit that referenced this pull request Oct 20, 2026
* release: 1.3.0

Version bump across the three manifests and the two lockfile entries
that record the app's own version.

1.2.0 and 1.2.1 were bumped but never tagged, so 1.3.0 is the first
release since 1.1.0 and carries everything since it:

Connections (#731)
- Each editor tab runs on its own server session, so SET @var, SET
  SESSION, temporary tables and multi-run transactions carry over (#734)
- Each agent session, and each backup or restore, has connections of its
  own, so none of them can hold up the editor or each other (#732, #770)
- The Min/Max pool size setting and the status-bar pool counter are gone;
  connections are no longer something to size (#769)
- A "busy" error says what is busy and what to wait for (#727)

Grid
- Grid edits save on the tab's session without committing its open
  transaction (#762)
- Copy a long cell value without opening the viewer (#748)

Fixes
- Linux: WebKitGTK's DMABUF renderer is off under Wayland (#742)
- rustls for RUSTSEC-2026-0285 and RUSTSEC-2026-0346..0349 (#728, #759)
- Tauri 2.12.3, tauri-plugin-updater 2.13.3, tauri-plugin-shell 2.5.0
  (#749, #747, #758), and dependency roll-ups

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g

* fix(deps): bump rustls-webpki and webpki-roots for RUSTSEC-2026-0381..0383

rustls-webpki 0.103.16, webpki-roots and webpki-root-certs 1.0.10. The
advisories were published today: certificate verification could accept
distrusted intermediates, and the bundled roots still trusted the
distrusted emSign intermediates. cargo audit fails on all three, and a
release should not ship them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g

---------

Co-authored-by: Claude <[email protected]>
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.

2 participants