Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
fix(integrations): preserve implicit direct connection compatibility
Rahman0abe11577da2
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.mdindex e4dbf7e6..e1c3cc6e 100644--- a/docs/CHANGELOG.md+++ b/docs/CHANGELOG.md@@ -13,6 +13,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.**Fixed**+- `integrations` preserve implicit direct connection compatibility- `workflows` harden reconciled artifact history reads- `integrations` prefer GitHub OAuth- `hosted` restore updates and Hermes runtimediff --git a/docs/PROGRESS.md b/docs/PROGRESS.mdindex d6014732..3e286409 100644--- a/docs/PROGRESS.md+++ b/docs/PROGRESS.md@@ -19,7 +19,11 @@ read roots; synthetic test roots explicitly grant only their own read/write acceThe audit records every observed branch, worktree and PR with a disposition. Normal Gitcleanup removes only clean, dormant worktrees whose HEAD is already reachable from main;active/dirty/unmerged trees, local environments and referenced dependencies remain protected.-A verified private Git bundle and ignored-note backups precede cleanup. Detailed verification+A verified private Git bundle and ignored-note backups precede cleanup.+Full-suite verification caught a compatibility issue in the preserved OAuth candidate:+UI ordering must not change the existing API default for an omitted connection source.+The API retains its original direct default; the UI explicitly submits the selected OAuth+source, preserving both existing callers and OAuth-first presentation. Detailed verificationand release status belong to the workflow evidence; this entry does not claim deployment.## 2026-09-17 — GitHub OAuth-first Integrations routingdiff --git a/lib/infra/connection-model.test.ts b/lib/infra/connection-model.test.tsindex 823a5bff..ad050464 100644--- a/lib/infra/connection-model.test.ts+++ b/lib/infra/connection-model.test.ts@@ -28,10 +28,12 @@ describe("native credential identity core",()=>{expect(await fs.readFile(file+".v1-backup.json","utf8")).toBe(original);expect((await fs.stat(file+".v1-backup.json")).mode&0o777).toBe(0o600);expect((await readIntegrationState()).instanceId).toBe(state.instanceId);});- it("defaults new GitHub connections to hosted OAuth while preserving explicit direct fallback",async()=>{+ it("preserves legacy implicit direct creation while supporting explicitly selected GitHub OAuth",async()=>{const f=await fixture();- const oauth=await f.manage({action:"connection.create",confirm:true,user:"alice",provider:"github",connection:"oauth-default"}) as {connection:{source:string;authMethod:string}};+ const oauth=await f.manage({action:"connection.create",confirm:true,user:"alice",provider:"github",connection:"oauth-default",source:"composio",authMethod:"oauth2"}) as {connection:{source:string;authMethod:string}};expect(oauth.connection).toMatchObject({source:"composio",authMethod:"oauth2"});+ const legacy=await f.manage({action:"connection.create",confirm:true,user:"alice",provider:"github",connection:"legacy"}) as {connection:{source:string;authMethod:string}};+ expect(legacy.connection).toMatchObject({source:"direct",authMethod:"direct"});const direct=await f.manage({action:"connection.create",confirm:true,user:"alice",provider:"github",connection:"manual",source:"direct",authMethod:"direct"}) as {connection:{source:string;authMethod:string}};expect(direct.connection).toMatchObject({source:"direct",authMethod:"direct"});});diff --git a/lib/infra/connection-service.ts b/lib/infra/connection-service.tsindex c14c0ad4..7b80e94a 100644--- a/lib/infra/connection-service.ts+++ b/lib/infra/connection-service.ts@@ -1,6 +1,6 @@import { randomUUID } from "node:crypto";import { AsyncLocalStorage } from "node:async_hooks";-import { connectionCatalog, connectionMethod, connectionSources, connectionSummary, nativeDefinition } from "./connection-registry";+import { connectionCatalog, connectionMethod, connectionSummary, nativeDefinition } from "./connection-registry";import { readIntegrationState, mutateIntegrationState } from "./connection-storage";import { IntegrationError, identity, connectionLabel, selectConnection, resolveUser, folderBinding, metadataOnly, assertNotBusy, resolveSharedConnection, type ConnectionSelector, type IntegrationState, type IntegrationConnection, type ConnectionSource } from "./identity";import { normalizeInfraValues, isInfraProviderId } from "./catalog";@@ -27,7 +27,7 @@ export async function integrationSnapshot(selector:ConnectionSelector={}){}export function createConnectionIn(state:IntegrationState,input:{user:string;provider:string;connection:string;label?:string;source?:ConnectionSource;authMethod?:string;makeDefault?:boolean}){const user=identity(input.user,"user"),provider=identity(input.provider,"provider"),id=identity(input.connection,"connection"),profile=state.users[user];if(!profile)throw new IntegrationError("user_not_found",404);- const source=input.source??connectionSources(provider)[0]??"direct",method=connectionMethod(provider,source,input.authMethod),rows=profile.connections[provider]??{};+ const source=input.source??"direct",method=connectionMethod(provider,source,input.authMethod),rows=profile.connections[provider]??{};if(Object.hasOwn(rows,id))throw new IntegrationError("connection_exists",409);const c:IntegrationConnection={id,uid:randomUUID(),label:connectionLabel(input.label??id),provider,source,authMethod:method.id,scope:method.scope,revision:1,values:{},createdAt:Date.now(),updatedAt:Date.now()};profile.connections[provider]={...rows,[id]:c};if(input.makeDefault||!Object.keys(rows).length)profile.defaults[provider]=id;return c;