Skip to content

Feat/chat centric workspace - #318

Merged
nathanschmid08 merged 4 commits into
mainfrom
feat/chat-centric-workspace
Nov 12, 2026
Merged

nathanschmid08 merged 4 commits into
mainfrom
feat/chat-centric-workspace

Conversation

@nathanschmid08

Copy link
Copy Markdown
Contributor

What changed

Why

Closes #

How it was tested

Anything left out, or worth a second opinion

Checklist

  • npm run lint -w @glassbeetle/api passes (API changes)
  • npm test passes
  • npm run build passes
  • Tests cover the change — integration tests for a new endpoint, a failing-first test for a bug fix
  • Docs updated if behaviour or a convention changed (docs/, README.md, apps/web/README.md)
  • The linked issue's acceptance criteria are met, or the gaps are named above

…ompletions

The API already serves projects, artifacts, the model catalogue and chat
completions; the frontend had no way to reach any of them.

- ProjectsService, ArtifactsService and ModelsService for the three
  collections.
- CompletionsService streams POST /chats/:chatId/completions over fetch,
  and reads the assembled context and triggers compaction.
- ConversationsService holds the recent chats plus the team and project
  names that label them, so the shell and the screens share one list.
- ChatRunsService owns in-flight runs across chats, so a generation
  survives navigation and its outcome can be flagged where it happened.
- ModelCatalogService names the model an agent runs on.
Both collections are served by the API but had no screens.

- /projects lists projects with their chat and artifact counts; a project's
  page shows its conversations and what they produced, read through the
  existing chats and artifacts endpoints filtered by projectId.
- /artifacts lists what agents produced, filterable by title and type; an
  artifact's page shows its text content, links back to the chat, agent and
  project it came from, and opens file-backed content from the API.
- A shared record-rows partial keeps rows consistent across both.
Rebuilds the shell and the chat screen around talking to agents, instead of
treating chats as one section of an admin dashboard.

Shell and navigation
- The rail now leads with New chat and the four places work happens (Chats,
  Projects, Agents, Artifacts), and gives the rest of its height to the
  conversations: grouped by project, then by last activity, filterable, and
  marked while an agent is working, failed, or finished unseen.
- Teams, shared memory, prompts, overview and spending move into a folded
  Workspace section, unfolded automatically while one of them is open.
- The window opens on /chats/new. Cmd/Ctrl+N starts a chat; New agent moves to
  Cmd/Ctrl+Shift+A; the digit shortcuts follow the rail's order.
- The trail names the open chat, project or team; the palette searches chats
  and offers the new destinations.

Starting a chat
- /chats/new is an empty conversation with the composer focused. Who the chat
  is with (agent with its model, or team) and its project are picked inline;
  the first message creates the chat, titles it from its first line, stores
  the turn and starts the reply. An owner that cannot reply is flagged before
  anything is sent. Replaces the create dialog.

A conversation
- Fills the window: a one-line header naming the participant and its model,
  a scrolling transcript on a reading measure, and a docked composer.
- Replies stream in place with the agent's reasoning folded above them; an
  activity line says whether it is starting, reasoning or writing, with the
  elapsed time and the turn in a team run. Send becomes Stop while running.
- Runs live in ChatRunsService, so they continue across navigation. Failures
  show the API's reason with Retry, and an unanswered turn offers to ask for
  the reply instead of retyping it.
- Fenced code renders as copyable blocks; system and tool turns render as
  collapsible steps. Content is always bound as text.
- Context, summary (with Compact now), the chat's artifacts and its facts move
  to a details panel toggled from a context gauge in the header.
- Rename from the title, move between projects from the header.
…native menu

- The native menu gains New Chat on CmdOrCtrl+N, matching the frontend, and
  New Agent moves to CmdOrCtrl+Shift+A so the accelerator no longer shadows it.
- The web README lists the new surfaces and endpoints, explains how runs are
  owned and shown, and drops the notes that said the UI had no composer.
@nathanschmid08
nathanschmid08 merged commit 1bebd7c into main Nov 12, 2026
3 of 4 checks passed
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