Skip to content

Promote expbkmain: reconnects no longer wait on editor and SSH discovery (#248), plus #240 and #244 - #249

Merged
bk-agent-01 merged 7 commits into
bkmainfrom
expbkmain
Oct 1, 2026
Merged

bk-agent-01 merged 7 commits into
bkmainfrom
expbkmain

Conversation

@bk-agent-01

Copy link
Copy Markdown
Collaborator

Promotes expbkmain (9d23bf0be) to bkmain. All three changes are already running on expbkt3.

PR Change
#248 fix(server): reconnects no longer wait on editor and SSH discovery. This is the cause of bkt3's 10–30 s "disconnected" episodes. A reconnect was slowed by the editor PATH scan and the Tailscale/sshd probe, each under a 5 s timeout. It now answers from the last result and refreshes in the background.
#240 fix(deploy): deploy scripts read the repository from origin, not the pre-transfer owner.
#244 feat(mcp): a user can route their Bifrost integration through toolyard. Bifrost stays the default.

Verified on expbkt3 (9d23bf0be, deployed 14:27 UTC)

  • Repeat connects: server.getConfig takes 1–2 ms. Before the fix it took 16–17 ms, because the SSH/Tailscale probe ran on every connect.
  • Connect more than 60 s after the last scan: getConfig answered in 2 ms (14:29:57.887–.889). The editor refresh started after that, at .900–.970. A second connect during the refresh answered in 1 ms and did not start another scan. Before the fix, the same connect ran the scan inline: 21 PATH checks inside getConfig, 45 ms idle and up to 5 s under bkt3's load.
  • Health: the service is healthy, and its log has no errors since the restart.

Merging this

Merging deploys bkt3, which restarts t3-bkmain.service and interrupts every live session on it.

🤖 Generated with Claude Code — Claude Opus 5.5 in T3 Code

bk-agent-01 and others added 7 commits September 27, 2026 20:09
…ale owner

All six deploy scripts pinned the GitHub API to beknown-work/bkt3code. The
repository has since been transferred to iamtushar324, so that path answers
with a 301 and nothing else. auto-deploy.sh read it with a curl that did not
follow redirects, so jq got the redirect body and failed with "Cannot iterate
over null" on every timer tick; bkt3 sat on old code after a green build until
the artifact was installed by hand. The redirect-following flag has since been
added, but every script still depends on a redirect GitHub only keeps until
someone claims the old name.

Each script now derives the slug from its checkout's origin remote and fails
with a clear message if that is not an owner/name pair, so the next transfer
needs no change here.

Model: Claude Opus 5 via Claude Code in T3 Code.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
fix(deploy): deploy scripts read the repository from origin, not a stale owner
Every x-bf-vk integration was forced to bk-toolhub, so nobody could try
toolyard, the MCP gateway replacing Bifrost, without a code change.
The integration may now point at an allowlisted Bifrost-compatible
gateway (Bifrost, the default, or toolyard.dev.beknown.live/mcp),
picked per person in Settings; any other URL still rewrites to Bifrost,
matching is exact after normalisation, and only the canonical URL is
stored. The integration id, auth mode, credential storage and the
`bifrost` tool namespace are unchanged, so skills keep working.

Done by Claude Opus 5.5 in Claude Code (T3 Code session).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(mcp): let a user route their Bifrost integration through toolyard
Every websocket connect built the server config by scanning PATH for
editors and probing sshd/Tailscale inline, each under a 5 s timeout. On a
busy server those steps timed out, the config took 12 s or more, and
clients (15 s setup budget) gave up and retried; a timed-out scan was never
cached, so every retry paid again. bkt3 showed "disconnected" for ~27 s.

Serve each discovery from its last success and refresh it in the
background after a minute. Only the first call after startup waits, and
its scan runs in the layer scope, so a caller that gives up no longer
cancels it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…nput

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…covery

fix(server): reconnects no longer wait on editor and SSH discovery
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Oct 1, 2026
@bk-agent-01
bk-agent-01 merged commit d2e805d into bkmain Oct 1, 2026
25 checks passed

This branch was successfully deployed

1 active deployment
bk-desktop-staging — 9d23bf0b Deployed Oct 1, 2026 by bk-agent-01 via Publish #165
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant