agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

Scratchpad section is missing from the sidebar until a projectless session exists

Open orchestrator-inc[bot] opened this issue 3 weeks ago • 3 comments

Reported via the AO orchestrator chat (relayed by an AO coding agent on the reporter's behalf).

The Scratchpad section isn't visible in the desktop sidebar on my machine; only Projects is listed. I've never started a session without a project. I expected the option to make a Scratchpad session to be visible regardless of that.

  • Where: desktop app, left sidebar (macOS)
  • Screenshot: the sidebar shows Search, Automations, Artifacts, Usage, then Projects with several projects and no Scratchpad section (screenshot provided in chat; it couldn't be attached by the bot account that filed this)

orchestrator-inc[bot] avatar Nov 13 '26 09:11 orchestrator-inc[bot]

Agent-collected evidence

Collected 2026-11-13T09:26Z from a source checkout of main at bb90515d7e (not the reporter's installed build; the reporter's AO version wasn't captured). Read-only code reading, no reproduction run.

What the code does. The Scratchpad section is rendered only when there's a standalone workspace to show:

  • frontend/src/renderer/hooks/useWorkspaceQuery.ts:324-336 builds the local Scratchpad workspace (kind: "standalone") from projectless sessions, but adds it to the workspace list only when standalone.sessions.length > 0.
  • frontend/src/renderer/components/Sidebar.tsx:921-934 (standaloneWorkspace) returns undefined when there's no local standalone workspace and none of the user's own Cloud standalone agents has a listed or archived session.
  • frontend/src/renderer/components/Sidebar.tsx:1345 renders <ScratchpadSection> only when standaloneWorkspace is defined, so the section header and its + button disappear for a user with no projectless sessions.

What this supports. It matches the report: a user who has never started a projectless session gets no Scratchpad section and no + entry point in the sidebar. The only remaining way in is the project picker on the New chat page, which offers Scratchpad (frontend/src/renderer/components/NewChatPage.tsx ~597-611). Hypothesis, not confirmed against the reporter's install: this is the cause; it isn't a rendering failure.

History. The section was introduced in #5759 ("give ad hoc agents their own Scratchpad section", with a + that opens a new ad hoc agent); the sessions-required condition predates it (#5547). #8186 (merged 2026-11-12) kept this behaviour for local and added the same hiding for Cloud standalone agents with no sessions.

Duplicate search (OrchestratorInc/agent-orchestrator, gh issue list/gh pr list and the search API for "scratchpad", "scratchpad sidebar", "scratchpad missing", "standalone sidebar"). No matching issue. gh issue list returned empty rows in this environment, and search-API "is:issue" results came back as PRs, so the issue search may be incomplete. Related but distinct PRs: #7460 (keep a closed Scratchpad closed), #7360 (remember section open state), #5759, #8186.

mohakchakraborty2004 avatar Nov 13 '26 09:11 mohakchakraborty2004

Working on this: keep the local Scratchpad entry and its new-agent action available before the first projectless session, with a regression test and desktop verification.

illegalcall avatar Nov 13 '26 13:11 illegalcall

Fixed by #8323, which merged a few hours after this report. The sidebar section, now named Sessions and shown above Projects, renders whether or not any projectless session exists, and its "+" starts the first one. Before that change, the section was rendered only when a standalone session already existed. Please reopen if it's still missing on a current build.

nikhilachale avatar Nov 23 '26 23:11 nikhilachale