Skip to content

feat: sqb dev terminal screen, one foreground sign-in and bounded warehouse read retries - #1509

Merged
chio-labs-delivery[bot] merged 18 commits into
mainfrom
feat/dev-screen
Nov 16, 2026
Merged

chio-labs-delivery[bot] merged 18 commits into
mainfrom
feat/dev-screen

Conversation

@kvlonge

@kvlonge kvlonge commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Why

sqb dev printed a flat log with no clear phase, ready state or warehouse status. An interactive sign-in prompted inside a background step, then the sync signed in again. A failed history read halved its page and retried every 30 s forever, even when a smaller page cannot help, and the UI never showed why.

Changes

  • sqb dev screen: start-up checklist, ready card, one line per change, publication, run or location warning, and keys o r s l q. With NO_COLOR, CI or no terminal it prints stable sqlbuild dev: lines, warnings included.
  • Shared phase-line and tree-group renderers in sqlbuild-core.
  • The first warehouse connection runs once in the foreground, framing the client's prompt. Background checks, the sync and requested connection tests report that result and never sign in again.
  • The runtime sends dev events and failure positions to sqb dev.
  • History reads: only memory, time or size failures shrink the page; others wait 30 s, doubling; the fifth in a row stops the sync until a request, a publication or the next safety sync, which tries once. Sync health carries the redacted error (optional field), shown on Connections.
  • Docs: sqb dev with per-adapter warehouse cost; read failures on the server page.
  • fensu.toml: bindings crate cap 206,335 → 206,364 (step events and read-failure replies live in the runtime binding); one FPRSL105 exception for the tree-group renderer until a second screen imports it.

DuckShop: not applicable; output, terminal and retry timing only, no project shape, data value or lifecycle.

Verification

  • Rust tests: screen text, dev events, dev session, read backoff, stop, safety retry, statistics rewind.
  • test_dev.py (plain warning line on a failed read), test_dev_terminal.py (one foreground sign-in; fails on 0.232.1), warehouse metadata and catalog suites (55 pass).
  • UI tests, svelte-check; Connections checked on a real sqb dev without its warehouse file.
  • fensu check, make check-ci.

Phase lines, tree groups, the ready card, event lines, the hotkey bar,
frame rules, plain lines and in-place redraw, with snapshot tests at 80
and 120 columns and a no-wrap check at every width. Not yet wired into
sqb dev.
…ehouse verdict, and takes recompile requests
# Conflicts:
#	crates/sqlbuild-python/src/bindings/_helpers/debug_command/run_debug.rs
#	tests/e2e/src/sqlbuild/cli/commands/main/debug/test_debug.py
…s, key reader and debug output split

Key reader and connection helpers are not wired into sqb dev yet.
…ign-in, runs and keys

Not yet passing fensu; plain and live modes checked by hand only.
# Conflicts:
#	crates/sqlbuild-python/src/bindings/_helpers/location_command/runtime.rs
…t, and the location skips a second sign-in

Not yet passing fensu.
…try modules split into helpers, event emission in orchestration

The Python bindings cap rises by 24 lines for the location's step events.
…s one foreground sign-in, docs state each adapter's warehouse cost
…y memory and time failures shrink the page, and sync health carries the read error
…ount in a row, dev connection tests report the foreground result, and the foreground check stops waiting once sqb debug exits
@chio-labs-delivery
chio-labs-delivery Bot added this pull request to the merge queue Nov 16, 2026
@kvlonge
kvlonge removed this pull request from the merge queue due to a manual request Nov 16, 2026
@chio-labs-delivery
chio-labs-delivery Bot added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 7d35d90 Nov 16, 2026
34 checks passed
@chio-labs-delivery
chio-labs-delivery Bot deleted the feat/dev-screen branch November 16, 2026 06:10
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