An open-source, faster Devin alternative
TypeScript
Computer: first session from the web, Slack optional in onboarding (#1064)
opencomputer-app[bot]776a6fc3b92e
diff --git a/services/managed-agents/src/computer/sessions-api.ts b/services/managed-agents/src/computer/sessions-api.tsindex b00a58c2..d6b2bd35 100644--- a/services/managed-agents/src/computer/sessions-api.ts+++ b/services/managed-agents/src/computer/sessions-api.ts@@ -458,8 +458,10 @@ export class ComputerSessionsApi {// The same create again (same id, body and member, e.g. a retry whose key the edge dropped): finish it.const repeat = row !== undefined && row.createHash === hash && row.ownerUserId === caller.member;if (row && !repeat) return conflict("id_conflict", `${id} belongs to another session.`);- if (this.deps.computerStatus() === "not_set_up") return conflict("computer_not_set_up", "Your organization has not finished setting up its computer.");- if (v.input !== undefined) {+ // No computer yet: the first session started outside Slack brings it to life (unavailable() wakes, which creates it),+ // so a web user need not install Slack first. Only past the credit check, so an org that cannot run boots no VM.+ const firstComputer = this.deps.computerStatus() === "not_set_up";+ if (v.input !== undefined || firstComputer) {const refused = await this.admission();if (refused) return refused;}diff --git a/services/managed-agents/test/computer-sessions-api.test.ts b/services/managed-agents/test/computer-sessions-api.test.tsindex fd0cb97a..d48ee66e 100644--- a/services/managed-agents/test/computer-sessions-api.test.ts+++ b/services/managed-agents/test/computer-sessions-api.test.ts@@ -407,8 +407,19 @@ describe("POST /sessions", () => {expect(f.frames("start")[0]).toMatchObject({ epoch: 2 });});- it("refusals: no computer 409, no credits 402, billing down 503, no v4 host 503 with a wake", async () => {- expect(await fixture({ status: "not_set_up" }).api.handle(caller(), { op: "create", body: { input: "hi" } })).toMatchObject({ status: 409, error: { code: "computer_not_set_up" } });+ it("no computer yet: the first create starts one (503 with a wake), only past the credit check", async () => {+ for (const body of [{ input: "hi" }, {}]) {+ const fresh = fixture({ status: "not_set_up", protocol: null });+ expect(await fresh.api.handle(caller(), { op: "create", body })).toMatchObject({ status: 503, error: { code: "computer_unavailable" } });+ expect(fresh.state.wakes).toBe(1);+ expect(fresh.api.row(SID)).toBeUndefined();+ const broke = fixture({ status: "not_set_up", protocol: null, admitted: false });+ expect(await broke.api.handle(caller(), { op: "create", body })).toMatchObject({ status: 402, error: { code: "insufficient_credits" } });+ expect(broke.state.wakes).toBe(0);+ }+ });++ it("refusals: no credits 402, billing down 503, no v4 host 503 with a wake", async () => {expect(await fixture({ admitted: false }).api.handle(caller(), { op: "create", body: { input: "hi" } })).toMatchObject({ status: 402, error: { code: "insufficient_credits" } });expect(await fixture({ admitted: "throws" }).api.handle(caller(), { op: "create", body: { input: "hi" } })).toMatchObject({ status: 503, error: { code: "unavailable" } });const old = fixture({ protocol: 3 });diff --git a/web/src/managed-agents/AgentStep.test.tsx b/web/src/managed-agents/AgentStep.test.tsxindex f9ff15f2..5a711550 100644--- a/web/src/managed-agents/AgentStep.test.tsx+++ b/web/src/managed-agents/AgentStep.test.tsx@@ -253,7 +253,7 @@ describe('choosing the coding agent', () => {it('comes first, with a paste form that never keeps the token', async () => {await show({ ...empty, agent: fresh }, 'Choose your coding agent')- expect(text()).toContain('Step 1 of 4')+ expect(text()).toContain('Step 1 of 3')expect(text()).toContain('Bring your own subscription.')expect(text()).toContain('No subscription? Your trial includes $10 of model credits.',@@ -276,7 +276,7 @@ describe('choosing the coding agent', () => {paste(TOKEN)submit()expect(field().value).toBe('')- await settle(() => text().includes('Step 2 of 4'), 'Slack step')+ await settle(() => text().includes('Step 2 of 3'), 'GitHub step')expect(computerApi.connectClaudeSubscription).toHaveBeenCalledWith(TOKEN)const mutations = client.getMutationCache().getAll()expect(mutations.length).toBeGreaterThan(0)@@ -313,7 +313,7 @@ describe('choosing the coding agent', () => {paste(` ${TOKEN.slice(0, 25)}\n ${TOKEN.slice(25)} `)expect(text()).not.toContain('cut off')submit()- await settle(() => text().includes('Step 2 of 4'), 'Slack step')+ await settle(() => text().includes('Step 2 of 3'), 'GitHub step')expect(computerApi.connectClaudeSubscription).toHaveBeenCalledWith(TOKEN)})@@ -356,7 +356,7 @@ describe('choosing the coding agent', () => {() => computerApi.getComputer.mock.calls.length > reads,'re-read',)- expect(text()).toContain('Step 1 of 4')+ expect(text()).toContain('Step 1 of 3')})it("shows the edge's copy when someone else connected one", async () => {@@ -377,7 +377,7 @@ describe('choosing the coding agent', () => {)})- it('moves on to Slack once a token is verified', async () => {+ it('moves on to GitHub once a token is verified', async () => {await show({ ...empty, agent: fresh }, 'Choose your coding agent')computerApi.connectClaudeSubscription.mockResolvedValue({agent: { ...fresh, choice: 'claude', subscription: subscription('ok') },@@ -387,7 +387,7 @@ describe('choosing the coding agent', () => {openPaste()paste(TOKEN)submit()- await settle(() => text().includes('Step 2 of 4'), 'Slack step')+ await settle(() => text().includes('Step 2 of 3'), 'GitHub step')expect(text()).toContain('Claude Code · your subscription')expect(notify.notifySuccess).toHaveBeenCalledWith('Claude Code is connected.',@@ -469,7 +469,7 @@ describe('choosing the coding agent', () => {openPaste()paste(TOKEN)submit()- await settle(() => text().includes('Step 2 of 4'), 'Slack step')+ await settle(() => text().includes('Step 2 of 3'), 'GitHub step')expect(notify.notifySuccess).toHaveBeenCalledWith("Saved. We'll check it when your computer starts.",)@@ -571,7 +571,7 @@ describe('choosing the coding agent', () => {},})refocus()- await settle(() => text().includes('Step 2 of 4'), 'Slack step')+ await settle(() => text().includes('Step 2 of 3'), 'GitHub step')expect(text()).toContain('Codex · your ChatGPT plan')expect(notify.notifySuccess).toHaveBeenCalledWith('Codex is connected.')expect(capture).toHaveBeenCalledWith('computer.setup.agent_connected', {@@ -786,7 +786,7 @@ describe('choosing the coding agent', () => {...empty,agent: { ...fresh, choice: 'claude', subscription: subscription('ok') },},- 'Add OpenComputer to Slack',+ 'Step 2 of 3',)act(() => button('Change')!.click())await settle(() => command() !== undefined, 'command')@@ -832,7 +832,7 @@ describe('choosing the coding agent', () => {{ ...empty, agent: { ...withCodex, choice: 'codex' } },'Choose your coding agent',)- expect(text()).toContain('Step 1 of 4')+ expect(text()).toContain('Step 1 of 3')await settle(() => command()?.includes(' codex ') === true, 'codex command')expect(computerApi.setAgentChoice).not.toHaveBeenCalled()})@@ -972,7 +972,7 @@ describe('choosing the coding agent', () => {choice: 'credits',})act(() => button('Use OpenComputer credits')!.click())- await settle(() => text().includes('Step 2 of 4'), 'Slack step')+ await settle(() => text().includes('Step 2 of 3'), 'GitHub step')expect(computerApi.setAgentChoice).toHaveBeenCalledWith('credits')expect(computerApi.disconnectClaudeSubscription).not.toHaveBeenCalled()expect(text()).toContain('Claude Opus 5.5 · OpenComputer credits')@@ -987,7 +987,7 @@ describe('choosing the coding agent', () => {...empty,agent: { ...fresh, choice: 'claude', subscription: subscription('ok') },},- 'Add OpenComputer to Slack',+ 'Step 2 of 3',)expect(text()).toContain('Claude Code · your subscription')act(() => button('Change')!.click())@@ -1179,8 +1179,8 @@ describe('choosing the coding agent', () => {})it('is not there for an older backend', async () => {- await show(empty, 'Add OpenComputer to Slack')- expect(text()).toContain('Step 1 of 3')+ await show(empty, 'Connect GitHub')+ expect(text()).toContain('Step 1 of 2')expect(text()).not.toContain('Choose your coding agent')})})diff --git a/web/src/managed-agents/Computer.test.tsx b/web/src/managed-agents/Computer.test.tsxindex 9d6fd7c6..1c042065 100644--- a/web/src/managed-agents/Computer.test.tsx+++ b/web/src/managed-agents/Computer.test.tsx@@ -145,9 +145,11 @@ describe('Computer page', () => {fn.mockReset()}computerApi.getComputerSessions.mockResolvedValue([])+ localStorage.clear()})afterEach(() => {+ vi.restoreAllMocks()act(() => root.unmount())client.clear()container.remove()@@ -169,6 +171,7 @@ describe('Computer page', () => {<Route path="getting-started" element={<ProjectsHome />} /><Route path="automations" element={<ProjectsHome list />} /><Route path="computer" element={<ComputerPage />} />+ <Route path="computer/sessions/:id" element={<div />} /></Routes><Location /></MemoryRouter>@@ -259,10 +262,9 @@ describe('Computer page', () => {expect(location()).toBe('/')})- it('does not create the computer on a visit: installing Slack brings it to life', async () => {+ it('does not create the computer on a visit: GitHub comes first', async () => {computerApi.getComputer.mockResolvedValue(empty)computerApi.createComputer.mockResolvedValue(provisioning)- computerApi.startComputerSlackInstall.mockReturnValue(new Promise(() => {}))render('/computer')await settle(@@ -270,23 +272,21 @@ describe('Computer page', () => {'setup',)- expect(container.textContent).toContain('Step 1 of 3')- expect(container.textContent).toContain('Not a Slack admin?')- // Before Slack there is no computer to report on, and no pitch.+ expect(container.textContent).toContain('Step 1 of 2')+ // Before the first session or Slack there is no computer to report on,+ // and no pitch.expect(container.textContent).not.toContain('Not set up yet')expect(container.textContent).not.toContain('Setting up')expect(container.textContent).not.toContain('Lives in Slack')- // One call to action: the current step's.+ // One call to action, the current step's, and a way past it.const current = container.querySelector('li[aria-current="step"]')!- expect(current.textContent).toContain('Add OpenComputer to Slack')- const invite = [...current.querySelectorAll('button')].find(- (button) => button.textContent === 'Add to Slack',- )- expect(invite).toBeDefined()- expect(container.querySelectorAll('button')).toHaveLength(1)- // The later steps are named, not offered yet.- expect(container.textContent).toContain('Connect GitHub')- expect(container.textContent).toContain('Give it a first task')+ expect(current.textContent).toContain('Connect GitHub')+ expect(+ [...container.querySelectorAll('button')].map((b) => b.textContent),+ ).toEqual(['Connect GitHub', 'Skip for now'])+ // The last step is named, not offered yet.+ expect(container.textContent).toContain('Add OpenComputer to Slack')+ expect(container.querySelector('textarea')).toBeNull()// Projects are a side door.expect(container.querySelector('a[href="/new"]')?.textContent).toContain('Set it up on OpenComputer infrastructure',@@ -302,12 +302,166 @@ describe('Computer page', () => {await new Promise((resolve) => setTimeout(resolve, 20))})expect(computerApi.createComputer).not.toHaveBeenCalled()+ })++ it('moves on to the first task when GitHub is skipped, and remembers it', async () => {+ computerApi.getComputer.mockResolvedValue(empty)++ render('/computer')+ await settle(+ () => container.textContent?.includes('Step 1 of 2') === true,+ 'GitHub step',+ )+ const skip = [...container.querySelectorAll('button')].find(+ (button) => button.textContent === 'Skip for now',+ )!+ act(() => skip.click())+ await settle(+ () => container.textContent?.includes('Step 2 of 2') === true,+ 'start step',+ )+ const current = container.querySelector('li[aria-current="step"]')!+ expect(current.textContent).toContain('Add OpenComputer to Slack')+ expect(container.textContent).toContain('Skipped for now')+ expect(localStorage.getItem('computer.setup.githubSkipped')).toBe('1')+ // Still nothing created: the first session does that.+ expect(computerApi.createComputer).not.toHaveBeenCalled()++ // A reload keeps the skip.+ act(() => root.unmount())+ root = createRoot(container)+ client.clear()+ render('/computer')+ await settle(+ () => container.textContent?.includes('Step 2 of 2') === true,+ 'start step after reload',+ )+ })- act(() => invite!.click())+ it('leads with Slack, the web only on request, when Slack is not in', async () => {+ localStorage.setItem('computer.setup.githubSkipped', '1')+ computerApi.getComputer.mockResolvedValue(empty)+ computerApi.startComputerSlackInstall.mockReturnValue(new Promise(() => {}))++ render('/computer')+ await settle(+ () => container.textContent?.includes('Step 2 of 2') === true,+ 'start step',+ )+ const current = container.querySelector('li[aria-current="step"]')!+ expect(current.textContent).toContain('Add OpenComputer to Slack')+ expect(current.textContent).toContain('Coding is more fun with your team')+ // The text box waits to be asked for, so Slack stays the way in.+ expect(current.querySelector('textarea')).toBeNull()+ expect(current.textContent).toContain('Prefer to start on the web?')+ expect(current.textContent).toContain('Not a Slack admin?')+ // Nothing to wait for in Slack yet.+ expect(current.textContent).not.toContain('Waiting for its first task')+ const invite = [...current.querySelectorAll('button')].find(+ (button) => button.textContent === 'Add to Slack',+ )!+ act(() => invite.click())await settle(() => computerApi.startComputerSlackInstall.mock.calls.length === 1,'Slack install started',)+ expect(computerApi.createComputer).not.toHaveBeenCalled()+ })++ it('starts the first task here, waiting while the computer comes to life', async () => {+ localStorage.setItem('computer.setup.githubSkipped', '1')+ computerApi.getComputer.mockResolvedValue(empty)+ // The first answer says the computer is starting; the second waits.+ let answer: (response: Response) => void = () => {}+ const answers = [+ Promise.resolve(+ Response.json(+ {+ error: {+ type: 'computer_unavailable',+ message: 'Your computer is starting.',+ retryAfterMs: 0,+ },+ },+ { status: 503 },+ ),+ ),+ new Promise<Response>((resolve) => {+ answer = resolve+ }),+ ]+ const starts: (RequestInit | undefined)[] = []+ vi.spyOn(globalThis, 'fetch').mockImplementation((url, init) => {+ if (url !== '/api/managed-agents/computer/sessions') {+ return Promise.resolve(Response.json({}, { status: 404 }))+ }+ starts.push(init)+ return answers[starts.length - 1]+ })++ render('/computer')+ await settle(+ () => container.textContent?.includes('Step 2 of 2') === true,+ 'start step',+ )+ const web = [...container.querySelectorAll('button')].find((button) =>+ button.textContent?.startsWith('Prefer to start on the web?'),+ )!+ act(() => web.click())+ const field = container.querySelector<HTMLTextAreaElement>(+ 'textarea[aria-label="First task"]',+ )!+ const start = () =>+ [...container.querySelectorAll('button')].find(+ (button) => button.textContent === 'Start',+ )!+ expect(start().disabled).toBe(true)+ act(() => {+ Object.getOwnPropertyDescriptor(+ HTMLTextAreaElement.prototype,+ 'value',+ )!.set!.call(field, ' Why is checkout flaky? ')+ field.dispatchEvent(new Event('input', { bubbles: true }))+ })+ expect(start().disabled).toBe(false)+ act(() => start().click())++ await settle(() => starts.length === 2, 'retried start')+ await settle(+ () => container.textContent?.includes('Starting your computer.') === true,+ 'starting the computer',+ )+ for (const init of starts) {+ expect(init?.method).toBe('POST')+ expect(JSON.parse(init?.body as string)).toEqual({+ input: 'Why is checkout flaky?',+ })+ }++ answer(+ Response.json({+ session: {+ id: 'ses_1',+ title: null,+ status: 'starting',+ archived: false,+ owner: null,+ origin: { type: 'api' },+ settings: { model: null, effort: null, mode: null },+ activeTurnId: null,+ asks: [],+ lastText: null,+ lastSeq: 0,+ createdAt: '2026-11-18T10:00:00.000Z',+ lastActiveAt: null,+ },+ }),+ )+ await settle(+ () => location() === '/computer/sessions/ses_1',+ 'the new session',+ )+ expect(computerApi.createComputer).not.toHaveBeenCalled()})it('creates the computer when Slack is installed but it is still missing', async () => {@@ -326,7 +480,7 @@ describe('Computer page', () => {'provisioning computer',)expect(computerApi.createComputer).toHaveBeenCalledTimes(1)- expect(container.textContent).toContain('Step 2 of 3')+ expect(container.textContent).toContain('Step 1 of 2')})it('does not create a computer the organization already has', async () => {@@ -341,10 +495,8 @@ describe('Computer page', () => {})it('cleans the Slack return query once handled', async () => {- computerApi.getComputer.mockResolvedValue({- ...provisioning,- slack: { installed: true, teamId: 'T1', teamName: 'Acme' },- })+ computerApi.getComputer.mockResolvedValue(onboarded)+ computerApi.getComputerSessions.mockResolvedValue([doneSession])render('/computer?slack=connected')await settle(() => location() === '/computer', 'clean URL')@@ -508,18 +660,14 @@ describe('Computer page', () => {render('/computer')await settle(- () => container.textContent?.includes('Step 2 of 3') === true,+ () => container.textContent?.includes('Step 1 of 2') === true,'setup',)const current = container.querySelector('li[aria-current="step"]')!expect(current.textContent).toContain('Connect GitHub')- // Slack is done: where it is, and the way out.- expect(container.textContent).toContain('In Acme')- // Unlinking stays behind a menu, never a button in plain view.+ expect(current.textContent).toContain('Skip for now')+ // Unlinking Slack is never a button in plain view.expect(container.textContent).not.toContain('Unlink')- expect(- container.querySelector('button[aria-label="Connection options"]'),- ).not.toBeNull()expect(container.textContent).not.toContain('Live now')})@@ -529,17 +677,21 @@ describe('Computer page', () => {render('/computer')await settle(- () => container.textContent?.includes('Step 3 of 3') === true,+ () => container.textContent?.includes('Step 2 of 2') === true,'last setup step',)const current = container.querySelector('li[aria-current="step"]')!- expect(current.textContent).toContain('Give it a first task')+ expect(current.textContent).toContain('Give it its first task')+ // In Slack; the web only on request.+ expect(current.querySelector('textarea')).toBeNull()+ expect(current.textContent).toContain('Prefer to start on the web?')expect(current.textContent).toContain('@OpenComputer why is the')expect(current.textContent).toContain('Waiting for its first task')+ expect(current.textContent).not.toContain('Add to Slack')expect(current.querySelector('a[href="https://app.slack.com/client/T1"]')?.textContent,- ).toContain('Open Slack')+ ).toBe('Open Slack')expect(container.textContent).toContain('Repositories in acme')expect(container.textContent).not.toContain('Live now')})@@ -549,7 +701,7 @@ describe('Computer page', () => {render('/computer')await settle(- () => container.textContent?.includes('Step 3 of 3') === true,+ () => container.textContent?.includes('Step 2 of 2') === true,'last setup step',)@@ -644,7 +796,7 @@ describe('Computer page', () => {render('/computer')await settle(- () => container.textContent?.includes('Step 3 of 3') === true,+ () => container.textContent?.includes('Step 2 of 2') === true,'last setup step',)const current = container.querySelector('li[aria-current="step"]')!@@ -662,4 +814,51 @@ describe('Computer page', () => {?.textContent,).toContain('More to try')})++ it('nudges toward Slack once set up without it', async () => {+ computerApi.getComputer.mockResolvedValue({+ ...onboarded,+ slack: { installed: false },+ })+ computerApi.getComputerSessions.mockResolvedValue([doneSession])+ computerApi.startComputerSlackInstall.mockReturnValue(new Promise(() => {}))++ render('/computer')+ await settle(+ () => container.textContent?.includes('Explain the billing') === true,+ 'sessions',+ )+ expect(container.textContent).not.toContain('Set up your computer')+ const nudge = container.querySelector(+ 'section[aria-label="Connect Slack"]',+ )!+ expect(nudge.textContent).toContain('Coding is more fun with your team')+ // Only what is connected is listed.+ const header = container.querySelector('header')!+ expect(header.textContent).toContain('GitHub')+ expect(header.textContent).not.toContain('Slack')+ act(() =>+ [...nudge.querySelectorAll('button')]+ .find((button) => button.textContent === 'Add to Slack')!+ .click(),+ )+ await settle(+ () => computerApi.startComputerSlackInstall.mock.calls.length === 1,+ 'Slack install started',+ )+ })++ it('leaves the Slack nudge out once Slack is in', async () => {+ computerApi.getComputer.mockResolvedValue(onboarded)+ computerApi.getComputerSessions.mockResolvedValue([doneSession])++ render('/computer')+ await settle(+ () => container.textContent?.includes('Explain the billing') === true,+ 'sessions',+ )+ expect(+ container.querySelector('section[aria-label="Connect Slack"]'),+ ).toBeNull()+ })})diff --git a/web/src/managed-agents/Computer.tsx b/web/src/managed-agents/Computer.tsxindex 67dbf361..551f7e07 100644--- a/web/src/managed-agents/Computer.tsx+++ b/web/src/managed-agents/Computer.tsx@@ -7,7 +7,7 @@ import {type ReactNode,} from 'react'import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'-import { Link, Navigate, useSearchParams } from 'react-router-dom'+import { Link, Navigate, useNavigate, useSearchParams } from 'react-router-dom'import {ArrowRight,Check,@@ -58,6 +58,8 @@ import { addManagedGitHubConnection } from './api'import { GitHubStarBonus } from './GitHubStarBonus'import { launchAuthorizationWindow } from './authorization-window'import { SlackInstallButton, UnlinkSlackDialog } from './computer-slack'+import { createSession } from './computer-sessions-api'+import { ChatTextarea } from '@/components/chat-textarea'import {AgentCard,AgentChangeAction,@@ -81,7 +83,6 @@ import {alreadyLinkedCopy,SESSION_STATUS,START_SESSION_COPY,- computerIsOnboarded,computerPollInterval,BOOT_STAGES,bootProgress,@@ -129,8 +130,9 @@ function ComputerPageContent() {// The computer comes alive when the organization installs the Slack app// (the install's callback claims or creates it; work 052, Mohamed- // 2026-10-13), never on a visit: most organizations only look, and each- // computer is a VM. A visit only creates one when Slack is already+ // 2026-10-13) or starts its first session here (the sessions API creates+ // it), never on a visit: most organizations only look, and each computer+ // is a VM. A visit only creates one when Slack is already// installed and the computer is still missing (the install's claim// failed), and Try again retries a failed one. The call is idempotent.const create = useMutation({@@ -179,10 +181,19 @@ function ComputerPageContent() {// Someone who waited here for the first task sees it land: setup gives way// to the work with that task on top, live, and a way into its thread.// Without the wait, only a first task still under way earns the panel.- const step = status.data ? setupStep(status.data, sessions.data) : null+ const [githubSkipped, setGithubSkipped] = useState(+ () => localStorage.getItem(GITHUB_SKIPPED_KEY) === '1',+ )+ const skipGithub = () => {+ localStorage.setItem(GITHUB_SKIPPED_KEY, '1')+ setGithubSkipped(true)+ }+ const step = status.data+ ? setupStep(status.data, sessions.data, githubSkipped)+ : nullconst [waitedForFirstTask, setWaitedForFirstTask] = useState(false)const [firstTaskDismissed, setFirstTaskDismissed] = useState(false)- if (step === 'hello' && !waitedForFirstTask) setWaitedForFirstTask(true)+ if (step === 'start' && !waitedForFirstTask) setWaitedForFirstTask(true)if (status.isLoading) {return (@@ -234,7 +245,7 @@ function ComputerPageContent() {// Whether the first mention is still to come decides between setup and the// work, so wait for the sessions rather than flash one and then the other.- if (sessionsLoading && computerIsOnboarded(status.data)) {+ if (sessionsLoading && step === null) {return (<divrole="status"@@ -246,8 +257,8 @@ function ComputerPageContent() {)}- // Once it is in Slack, knows the code and has had its first mention, the- // page is about the work.+ // Once it knows the code and has had its first session, the page is about+ // the work.if (step === null) {const first = firstSession(sessions.data)const showFirstTask =@@ -264,6 +275,7 @@ function ComputerPageContent() {onRetry={() => create.mutate()}/>{slackProblemPanel}+ {status.data.slack.installed ? null : <SlackNudge />}{showFirstTask ? (<FirstTasksession={first}@@ -290,6 +302,7 @@ function ComputerPageContent() {status={status.data}step={step}notice={slackProblemPanel}+ onSkipGithub={skipGithub}createError={createError}creating={create.isPending}onRetry={() => create.mutate()}@@ -546,12 +559,16 @@ function Overview({) : null}</div><div className="flex items-center gap-5 text-sm">- <Connection label="Slack">- {status.slack.teamName ?? 'Connected'}- </Connection>- <Connection label="GitHub">- {accounts.length ? accounts.join(', ') : 'Connected'}- </Connection>+ {status.slack.installed ? (+ <Connection label="Slack">+ {status.slack.teamName ?? 'Connected'}+ </Connection>+ ) : null}+ {status.github.connected ? (+ <Connection label="GitHub">+ {accounts.length ? accounts.join(', ') : 'Connected'}+ </Connection>+ ) : null}<ConnectionsMenu status={status} manage /></div></header>@@ -786,12 +803,14 @@ function SlackInstallFailed({/*** Setup is the onboarding of every new organization: three steps, one call to* action at a time, and where the person is in them. No pitch; the page is not- * a landing page (Igor, 2026-10-13).+ * a landing page (Igor, 2026-10-13). The last step starts the first session+ * here or connects Slack, whichever the person likes (Mohamed, 2026-11-18).*/function Setup({status,step,notice,+ onSkipGithub,createError,creating,onRetry,@@ -799,6 +818,7 @@ function Setup({status: ComputerStatusstep: SetupStepnotice: ReactNode+ onSkipGithub: () => voidcreateError: Error | nullcreating: booleanonRetry: () => void@@ -806,8 +826,7 @@ function Setup({const { computer } = statusconst failedToCreate = !computer && createError !== nullconst failed = failedToCreate || computer?.state === 'failed'- // Without the backend's agent block (an older edge), setup is the three- // steps it was.+ // Without the backend's agent block (an older edge), setup is two steps.const { agent } = statusconst steps = SETUP_STEPS.filter((id) => id !== 'agent' || agent)const position = steps.indexOf(step) + 1@@ -821,13 +840,13 @@ function Setup({// reads "free credits": routing decides from the subscription row alone,// so that is what runs its threads.agent: Boolean(agent) && step !== 'agent',- slack: status.slack.installed,- github: status.github.connected,- hello: false,+ // Skipped counts as done; its row still offers to connect.+ github: step !== 'github',+ start: false,}const slack = slackLinks(status.slack)// The last step holds the most; the others leave the bottom free.- const stepsRunLong = step === 'hello'+ const stepsRunLong = step === 'start'const progress = (id: SetupStep): SetupItemState =>id === step ? 'current' : done[id] ? 'done' : 'upcoming'return (@@ -838,8 +857,8 @@ function Setup({<p className="text-muted-foreground text-sm font-medium">Step {position} of {steps.length}</p>- {/* Before Slack there is no computer to report on; while it- comes to life, how far along it is. */}+ {/* Before the first session or Slack there is no computer to+ report on; while it comes to life, how far along it is. */}{boot && !failed ? (<BootProgress stage={boot.stage} since={boot.since} />) : computer || status.slack.installed ? (@@ -916,81 +935,95 @@ function Setup({/></SetupItem>) : null}- <SetupItem- number={number('slack')}- title="Add OpenComputer to Slack"- state={progress('slack')}- summary={`In ${status.slack.teamName ?? 'your Slack workspace'}`}- doneAction={<ConnectionsMenu status={status} />}- >- <p>- Mention it in any thread and work the task through together,- right there.- </p>- <SlackInstallButton size="lg" label="Add to Slack" />- {/* Most workspaces only let admins add apps; where approval is- on, Slack itself lets a member ask for it. */}- <p className="text-xs">- Not a Slack admin? Click it anyway: Slack lets you ask your- admin to approve it. Come back here once they have.- </p>- </SetupItem><SetupItemnumber={number('github')}title="Connect GitHub"state={progress('github')}- summary={githubSummary(status.github)}+ summary={+ status.github.connected+ ? githubSummary(status.github)+ : 'Skipped for now'+ }+ doneAction={+ status.github.connected ? undefined : (+ <GitHubAction size="sm" variant="outline" />+ )+ }><p>Pick the repositories it can work in. It reads and runs the codeto answer, and changes it when you say so.</p>- <GitHubAction size="lg" />+ <div className="flex flex-wrap items-center gap-x-5 gap-y-3">+ <GitHubAction size="lg" />+ <button+ type="button"+ onClick={onSkipGithub}+ className="hover:text-foreground decoration-muted-foreground/40 underline underline-offset-4 transition-colors"+ >+ Skip for now+ </button>+ </div></SetupItem><SetupItem- number={number('hello')}- title="Give it a first task"- state={progress('hello')}+ number={number('start')}+ title={+ status.slack.installed+ ? 'Give it its first task'+ : 'Add OpenComputer to Slack'+ }+ state={progress('start')}>- <p>{firstTaskLead(computer)} For example:</p>- <CopyRow value={`@OpenComputer ${EXAMPLE_ASKS[0]}`} />- <div className="flex flex-wrap items-center gap-x-5 gap-y-3">- {slack.dm ? (- <Button size="lg" asChild>- <a href={slack.dm}>- <MessagesSquare className="size-4" aria-hidden />- Message OpenComputer- </a>- </Button>- ) : null}- {slack.web ? (- slack.dm ? (- <a- href={slack.web}- target="_blank"- rel="noreferrer"- className="hover:text-foreground decoration-muted-foreground/40 underline underline-offset-4 transition-colors"- >- Open Slack in the browser- </a>- ) : (- <Button size="lg" asChild>- <a href={slack.web} target="_blank" rel="noreferrer">- Open Slack- <ExternalLink className="size-4" aria-hidden />- </a>- </Button>- )- ) : null}- </div>- <p className="inline-flex items-center gap-2">- <PulseDot tone="busy" />- Waiting for its first task. This page moves on by itself.- </p>+ {status.slack.installed ? (+ <>+ <p>{firstTaskLead(computer)} For example:</p>+ <CopyRow value={`@OpenComputer ${EXAMPLE_ASKS[0]}`} />+ <div className="flex flex-wrap items-center gap-x-5 gap-y-3">+ {slack.dm ? (+ <Button size="lg" asChild>+ <a href={slack.dm}>+ <MessagesSquare className="size-4" aria-hidden />+ Message OpenComputer+ </a>+ </Button>+ ) : null}+ {slack.web ? (+ slack.dm ? (+ <a+ href={slack.web}+ target="_blank"+ rel="noreferrer"+ className="hover:text-foreground decoration-muted-foreground/40 underline underline-offset-4 transition-colors"+ >+ Open Slack in the browser+ </a>+ ) : (+ <Button size="lg" asChild>+ <a href={slack.web} target="_blank" rel="noreferrer">+ Open Slack+ <ExternalLink className="size-4" aria-hidden />+ </a>+ </Button>+ )+ ) : null}+ </div>+ <p className="inline-flex items-center gap-2">+ <PulseDot tone="busy" />+ Waiting for its first task. This page moves on by itself.+ </p>+ </>+ ) : (+ <SlackOffer />+ )}+ <WebStart /></SetupItem></ol><div className="flex flex-col gap-6 self-start xl:[grid-area:context]">- <SetupContext step={step} agentCard={agentCard} />+ <SetupContext+ step={step}+ agentCard={agentCard}+ slackInstalled={status.slack.installed}+ /><GitHubStarBonus /></div>{/* The scene only uses height nobody else needs: its area is a size@@ -998,7 +1031,7 @@ function Setup({the scene shows when the space left fits it plus clearance. */}<div className="[container-type:size] relative hidden min-h-0 xl:block xl:[grid-area:scene]"><PixelScene- asleep={step === 'agent' || step === 'slack'}+ asleep={!computer}shape={stepsRunLong ? 'compact' : 'wide'}className={cn('absolute inset-x-0 bottom-0 hidden',@@ -1014,6 +1047,132 @@ function Setup({)}+/** Where skipping GitHub in setup is remembered, so a reload keeps it. */+const GITHUB_SKIPPED_KEY = 'computer.setup.githubSkipped'++/**+ * The first task, asked right here: starting it brings the computer to life+ * when there is none yet, then opens the session.+ */+function FirstTaskComposer() {+ const navigate = useNavigate()+ const queryClient = useQueryClient()+ const [input, setInput] = useState('')+ const [booting, setBooting] = useState(false)+ const start = useMutation({+ mutationFn: () => createSession(input.trim(), {}, () => setBooting(true)),+ onSettled: () => setBooting(false),+ onSuccess: (session) => {+ void queryClient.invalidateQueries({ queryKey: computerQueryKey })+ void navigate(`/computer/sessions/${session.id}`)+ },+ onError: (error) => notifyError('Could not start the session', error),+ })+ const send = () => {+ if (input.trim() && !start.isPending) start.mutate()+ }+ return (+ <div className="space-y-2">+ <div className="bg-card focus-within:border-ring/60 rounded-lg border transition-colors">+ <ChatTextarea+ aria-label="First task"+ value={input}+ onChange={(event) => setInput(event.target.value)}+ onSend={send}+ placeholder={`For example: ${EXAMPLE_ASKS[0]}`}+ className="text-foreground min-h-16 resize-none border-0 bg-transparent px-3 pt-2.5 shadow-none focus-visible:ring-0 dark:bg-transparent"+ />+ <div className="flex justify-end px-2 pb-2">+ <Button disabled={!input.trim() || start.isPending} onClick={send}>+ {start.isPending ? (+ <Loader2 className="size-4 animate-spin" aria-hidden />+ ) : (+ <ArrowRight className="size-4" aria-hidden />+ )}+ Start+ </Button>+ </div>+ </div>+ {booting ? (+ <p role="status" className="inline-flex items-center gap-2">+ <PulseDot tone="busy" />+ Starting your computer. The first time takes a minute or two.+ </p>+ ) : null}+ </div>+ )+}++/** Slack, the way in: where the team works the task together. */+function SlackOffer() {+ return (+ <>+ <p>+ Coding is more fun with your team. Mention it in any thread and work the+ task through together, right there.+ </p>+ <SlackInstallButton size="lg" label="Add to Slack" />+ {/* Most workspaces only let admins add apps; where approval is on,+ Slack itself lets a member ask for it. */}+ <p className="text-xs">+ Not a Slack admin? Click it anyway: Slack lets you ask your admin to+ approve it. Come back here once they have.+ </p>+ </>+ )+}++/**+ * The web, for whoever asks for it: Slack stays the way in, and the composer+ * only opens on request (Mohamed, 2026-11-18: shown upfront, everyone would+ * take the text box).+ */+function WebStart() {+ const [open, setOpen] = useState(false)+ return (+ <div className="border-t pt-4">+ {open ? (+ <div className="space-y-3">+ <p className="text-foreground font-medium">+ Give it a first task here+ </p>+ <FirstTaskComposer />+ </div>+ ) : (+ <button+ type="button"+ onClick={() => setOpen(true)}+ className="hover:text-foreground decoration-muted-foreground/40 inline-flex items-center gap-1 underline underline-offset-4 transition-colors"+ >+ Prefer to start on the web? Give it a first task here+ <ArrowRight className="size-3" aria-hidden />+ </button>+ )}+ </div>+ )+}++/** Set up without Slack: keep it on offer, quietly, until it is in. */+function SlackNudge() {+ return (+ <section+ aria-label="Connect Slack"+ className="bg-panel text-muted-foreground flex flex-wrap items-center justify-between gap-x-6 gap-y-3 rounded-xl border px-5 py-4 text-sm shadow-sm"+ >+ <div className="min-w-0">+ <p className="text-foreground font-medium">+ Coding is more fun with your team+ </p>+ <p className="mt-0.5">+ Add OpenComputer to Slack and work tasks through together in any+ thread.+ </p>+ </div>+ <SlackInstallButton variant="outline" label="Add to Slack" />+ </section>+ )+}+/*** Why each step matters, beside the steps: quiet, never a call to action* (Igor, 2026-10-13: setup lost the what and the why).@@ -1021,10 +1180,12 @@ function Setup({function SetupContext({step,agentCard,+ slackInstalled,className,}: {step: SetupStepagentCard: AgentCardChoice+ slackInstalled: booleanclassName?: string}) {return (@@ -1041,9 +1202,9 @@ function SetupContext({fixes CI.</p></div>- ) : step === 'slack' ? (+ ) : step === 'start' && !slackInstalled ? (<>- <ContextHeading>How it works</ContextHeading>+ <ContextHeading>Better with your team</ContextHeading><SlackThreadPreview /><ContextPointspoints={[@@ -1344,13 +1505,15 @@ function ConnectionsMenu({</Link></DropdownMenuItem>) : null}- <DropdownMenuItem- variant="destructive"- onSelect={() => setConfirmUnlink(true)}- >- <Unplug aria-hidden />- Unlink Slack workspace- </DropdownMenuItem>+ {status.slack.installed ? (+ <DropdownMenuItem+ variant="destructive"+ onSelect={() => setConfirmUnlink(true)}+ >+ <Unplug aria-hidden />+ Unlink Slack workspace+ </DropdownMenuItem>+ ) : null}</DropdownMenuContent></DropdownMenu><UnlinkSlackDialog@@ -1362,11 +1525,18 @@ function ConnectionsMenu({)}-function GitHubAction({ size = 'default' }: { size?: 'default' | 'lg' }) {+function GitHubAction({+ size = 'default',+ variant = 'default',+}: {+ size?: 'default' | 'sm' | 'lg'+ variant?: 'default' | 'outline'+}) {const [starting, setStarting] = useState(false)return (<Buttonsize={size}+ variant={variant}disabled={starting}onClick={() => {setStarting(true)diff --git a/web/src/managed-agents/computer-sessions-api.ts b/web/src/managed-agents/computer-sessions-api.tsindex 67ef3692..05e47471 100644--- a/web/src/managed-agents/computer-sessions-api.ts+++ b/web/src/managed-agents/computer-sessions-api.ts@@ -1,5 +1,6 @@import { z } from 'zod'import { apiFetch } from '@/api/client'+import { ApiError } from '@/api/errors'// The Computer API v1 (computer/schema/computer-api.v1.json), called with the// dashboard's session cookie on the public `/api` base: the api-edge accepts a@@ -157,13 +158,45 @@ export type SessionSettings = {mode?: string}-export function createSession(input: string, settings: SessionSettings = {}) {- return apiFetch(- `${PREFIX}/sessions`,- { method: 'POST', body: JSON.stringify({ input, ...settings }) },- SessionResultSchema,- '/api',- ).then((r) => r.session)+// A cold computer takes a few minutes to boot; past this, starting gives up.+const START_TIMEOUT_MS = 5 * 60_000++/**+ * Starts a session. While the computer is starting (the first session of an+ * organization with no computer creates it), the API answers 503+ * `computer_unavailable`: wait as it asks and try again, telling the caller+ * so it can say why the wait.+ */+export async function createSession(+ input: string,+ settings: SessionSettings = {},+ onComputerStarting?: () => void,+) {+ const deadline = Date.now() + START_TIMEOUT_MS+ for (;;) {+ try {+ const result = await apiFetch(+ `${PREFIX}/sessions`,+ { method: 'POST', body: JSON.stringify({ input, ...settings }) },+ SessionResultSchema,+ '/api',+ )+ return result.session+ } catch (error) {+ if (+ !(error instanceof ApiError) ||+ error.type !== 'computer_unavailable' ||+ Date.now() > deadline+ ) {+ throw error+ }+ onComputerStarting?.()+ const wait = error.details?.retryAfterMs+ await new Promise((resolve) =>+ setTimeout(resolve, typeof wait === 'number' ? wait : 5_000),+ )+ }+ }}export function getSession(id: string) {diff --git a/web/src/managed-agents/computer-sessions/Home.tsx b/web/src/managed-agents/computer-sessions/Home.tsxindex ccf53aa8..237ffd60 100644--- a/web/src/managed-agents/computer-sessions/Home.tsx+++ b/web/src/managed-agents/computer-sessions/Home.tsx@@ -20,6 +20,7 @@ export default function ComputerSessionsHome() {const qc = useQueryClient()const [input, setInput] = useState('')const [settings, setSettings] = useState<SessionSettings>({})+ const [computerStarting, setComputerStarting] = useState(false)const needs = useQuery({queryKey: sessionKeys.list(NEEDS_YOU),queryFn: () => listSessions(NEEDS_YOU),@@ -31,7 +32,9 @@ export default function ComputerSessionsHome() {refetchInterval: 5_000,})const start = useMutation({- mutationFn: () => createSession(input.trim(), settings),+ mutationFn: () =>+ createSession(input.trim(), settings, () => setComputerStarting(true)),+ onSettled: () => setComputerStarting(false),onSuccess: (session) => {setInput('')void qc.invalidateQueries({ queryKey: sessionKeys.all })@@ -80,6 +83,16 @@ export default function ComputerSessionsHome() {</div></div>+ {computerStarting ? (+ <p+ role="status"+ className="text-muted-foreground mt-3 inline-flex items-center gap-2 text-sm"+ >+ <Loader2 className="size-3.5 animate-spin" aria-hidden />+ Starting your computer. The first time takes a minute or two.+ </p>+ ) : null}+{waiting.length ? (<section className="mt-10 space-y-2"><h2 className="text-muted-foreground text-xs font-medium tracking-wide uppercase">diff --git a/web/src/managed-agents/computer-state.test.ts b/web/src/managed-agents/computer-state.test.tsindex d4f49109..536bb0b0 100644--- a/web/src/managed-agents/computer-state.test.ts+++ b/web/src/managed-agents/computer-state.test.ts@@ -14,7 +14,6 @@ import {SESSION_POLL_MS,SLOW_POLL_MS,agentSummary,- computerIsOnboarded,computerPollInterval,computerPresentation,firstTaskLead,@@ -199,20 +198,28 @@ describe('computer setup', () => {installations: [{ id: '1', accountLogin: 'acme' }],}- it('walks Slack, then GitHub, then the first mention', () => {- expect(setupStep(status({ computer: null }), undefined)).toBe('slack')- // GitHub connected first still leaves Slack to do.- expect(setupStep(status({ github }), [])).toBe('slack')+ it('walks GitHub, then the first session, with or without Slack', () => {+ expect(setupStep(status({ computer: null }), undefined)).toBe('github')expect(setupStep(status({ slack }), [])).toBe('github')- expect(setupStep(status({ slack, github }), [])).toBe('hello')- expect(setupStep(status({ slack, github }), [{} as never])).toBeNull()+ // Slack is on offer, never a step: the first session can come first.+ expect(setupStep(status({ github, computer: null }), undefined)).toBe(+ 'start',+ )+ expect(setupStep(status({ github }), [])).toBe('start')+ expect(setupStep(status({ slack, github }), [])).toBe('start')+ expect(setupStep(status({ github }), [{} as never])).toBeNull()+ })++ it('lets GitHub be skipped for now', () => {+ expect(setupStep(status({ computer: null }), undefined, true)).toBe('start')+ expect(setupStep(status(), [{} as never], true)).toBeNull()})it('stays on the last step while there is no computer', () => {- // Slack's claim failed: sessions are not asked for, so none can show.+ // Its creation is under way or failed: sessions are not asked for.expect(setupStep(status({ slack, github, computer: null }), undefined),- ).toBe('hello')+ ).toBe('start')})it('says ready only when it is', () => {@@ -251,12 +258,12 @@ describe('choosing the coding agent (work 081)', () => {it('moves on once free credits are chosen or a subscription connected', () => {const credits = { ...fresh, choice: 'credits' as const }- expect(setupStep(status({ agent: credits }), undefined)).toBe('slack')- expect(setupStep(status({ agent: connected }), undefined)).toBe('slack')+ expect(setupStep(status({ agent: credits }), undefined)).toBe('github')+ expect(setupStep(status({ agent: connected }), undefined)).toBe('github')// A subscription without a recorded choice still counts.expect(setupStep(status({ agent: { ...connected, choice: null } }), undefined),- ).toBe('slack')+ ).toBe('github')})it('never sends an installed organization back to it', () => {@@ -264,7 +271,7 @@ describe('choosing the coding agent (work 081)', () => {})it('is skipped by an older backend that sends no agent', () => {- expect(setupStep(status(), undefined)).toBe('slack')+ expect(setupStep(status(), undefined)).toBe('github')expect(computerStatusSchema.parse({computer: null,@@ -286,7 +293,7 @@ describe('choosing the coding agent (work 081)', () => {status({ agent: { ...connected, choice: 'codex' } }),undefined,),- ).toBe('slack')+ ).toBe('github')})it('names the linked Slack user only once Slack is in and the name is one', () => {@@ -440,26 +447,6 @@ function session(}}-describe('onboarding', () => {- it('is onboarded once Slack is installed and GitHub connected', () => {- const slack = { installed: true, teamName: 'Acme' }- const github = {- connected: true,- installations: [{ id: '1', accountLogin: 'acme' }],- }- expect(computerIsOnboarded(status())).toBe(false)- expect(computerIsOnboarded(status({ slack }))).toBe(false)- expect(computerIsOnboarded(status({ github }))).toBe(false)- expect(computerIsOnboarded(status({ slack, github }))).toBe(true)- // Onboarding is about the person's setup, not the computer's mood.- expect(- computerIsOnboarded(- status({ slack, github, computer: { ...computer, state: 'parked' } }),- ),- ).toBe(true)- })-})-describe('live and recent sessions', () => {const sessions = [session('old-idle', 'idle', '2026-10-11T09:00:00.000Z'),diff --git a/web/src/managed-agents/computer-state.ts b/web/src/managed-agents/computer-state.tsindex c0215765..745b95bf 100644--- a/web/src/managed-agents/computer-state.ts+++ b/web/src/managed-agents/computer-state.ts@@ -162,23 +162,26 @@ export function computerPollInterval(}}-export const SETUP_STEPS = ['agent', 'slack', 'github', 'hello'] as const+export const SETUP_STEPS = ['agent', 'github', 'start'] as constexport type SetupStep = (typeof SETUP_STEPS)[number]/*** The setup step a person is on, or null once set up. The coding agent comes- * first (work 081), then Slack brings the computer to life, GitHub gives it- * the code, and the first mention in Slack finishes setup. Step 1 is done- * once the person has connected a subscription (Claude or, since work 082,- * a ChatGPT plan for Codex) or chosen free credits; choosing a card alone- * keeps the step open, on reload too. It only blocks before Slack, and only when- * the backend reports it: existing organizations (all installed) and an- * older backend never see it, and nobody is sent back to it. Sessions not- * read yet (or unreadable) never hold the page on setup.+ * first (work 081), then GitHub gives it the code (or is skipped for now),+ * and the first session finishes setup: started here on the web, which brings+ * the computer to life, or by a mention once Slack is in. Slack is not a step+ * since sessions start from the web (Mohamed, 2026-11-18); it stays on offer.+ * Step 1 is done once the person has connected a subscription (Claude or,+ * since work 082, a ChatGPT plan for Codex) or chosen free credits; choosing a+ * card alone keeps the step open, on reload too. It only blocks before Slack,+ * and only when the backend reports it: existing organizations and an older backend never see+ * it, and nobody is sent back to it. Sessions not read yet (or unreadable)+ * never hold the page on setup.*/export function setupStep(status: ComputerStatus,sessions: ComputerSession[] | undefined,+ githubSkipped = false,): SetupStep | null {if (status.agent &&@@ -188,12 +191,11 @@ export function setupStep() {return 'agent'}- if (!status.slack.installed) return 'slack'- if (!status.github.connected) return 'github'- // No computer yet (its creation is under way or failed): nothing can have- // run, and the sessions are not even asked for.- if (!status.computer) return 'hello'- if (sessions?.length === 0) return 'hello'+ if (!status.github.connected && !githubSkipped) return 'github'+ // No computer yet (the first session creates it): nothing can have run,+ // and the sessions are not even asked for.+ if (!status.computer) return 'start'+ if (sessions?.length === 0) return 'start'return null}@@ -333,15 +335,6 @@ export const EXAMPLE_ASKS = ["sketch a cleaner API for the cart service, then let's refine it.",] as const-/**- * Onboarded: the computer is in Slack and knows the code. From then on the- * page stops selling and setting up, and shows the work instead (Mohamed,- * 2026-10-11: "mainly showcase the sessions that are live").- */-export function computerIsOnboarded(status: ComputerStatus): boolean {- return status.slack.installed && status.github.connected-}-/** A session the computer is working on right now. */export function sessionIsLive(session: ComputerSession): boolean {return session.status === 'starting' || session.status === 'busy'