Skip to content

AI assistant: Add ability to create and delete workspaces - #6089

Draft
jurgenwerk wants to merge 6 commits into
mainfrom
cs-12822-let-the-ai-assistant-create-workspaces
Draft

AI assistant: Add ability to create and delete workspaces#6089
jurgenwerk wants to merge 6 commits into
mainfrom
cs-12822-let-the-ai-assistant-create-workspaces

Conversation

@jurgenwerk

@jurgenwerk jurgenwerk commented Sep 11, 2026

Copy link
Copy Markdown
Contributor
image

The assistant had no way to create a workspace and told users to do it by
hand in the UI. This tool runs the same path as the "New Workspace" tile:
it creates the realm on the user's realm server, records it in the user's
realm list so the workspace chooser shows it without a reload, and returns
the new realm URL so the assistant can report it.

Name and endpoint are both optional. A random display name is generated
when none is given, and the endpoint is derived from the name and
normalized into the characters the server accepts.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Preview deployments

Host Test Results

    1 files  ±0      1 suites  ±0   1h 43m 12s ⏱️ - 5m 21s
4 750 tests ±0  4 736 ✅ + 5  14 💤 ±0  0 ❌ ±0 
4 765 runs  ±0  4 751 ✅ +10  14 💤 ±0  0 ❌  - 5 

Results for commit 5400e96. ± Comparison against earlier commit 9c9fbe9.

Realm Server Test Results

    1 files  ±0    212 suites  ±0   1h 17m 17s ⏱️ + 1m 24s
2 787 tests ±0  2 787 ✅ ±0  0 💤 ±0  0 ❌ ±0 
2 826 runs  ±0  2 826 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 5400e96. ± Comparison against earlier commit 9c9fbe9.

Runs the same path as "Delete Workspace" in the chooser tile menu: the
realm is removed on the realm server, it leaves the user's realm list,
and the app falls back to the workspace chooser if the deleted workspace
was the one being viewed. Only realms the user owns can be deleted.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@jurgenwerk jurgenwerk changed the title Let the AI assistant create workspaces Let the AI assistant create and delete workspaces Sep 11, 2026
jurgenwerk and others added 4 commits September 11, 2026 13:38
The room rendered the create and delete results as "Untitled Card" with
an empty thumbnail. The result cards now carry a display name and show
the workspace name and URL.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Neither tool needs to hand data back through a result card. Delete
already knows the realm it removed. Create now opens the new workspace
when it finishes, so the workspace URL reaches the assistant through the
context sent with the tool result, and nothing renders in the room
besides the tool call itself.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The integration tests looked up the realm-server service before the test
realm and its mocked endpoints existed, so the service's catalog fetch on
construction hit the network and failed every test in the module.

The acceptance test saw the previous workspace in the tool result's
context: the realm service had not met the new realm yet, so the open
index card resolved to the cached realm. The tool now registers the new
realm with the realm service before opening it, which also fixes the
reported URL in a real session.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The acceptance test read the tool result's `data` as an object; it is a
JSON string on the wire, so the workspace URL check compared against
undefined.

The integration test has no realm mounted at the created URL, so the
realm-info fetch the tool now makes failed as an unhandled rejection. The
test records that request instead of performing it, and the tool treats
a failed info fetch as a warning rather than a failed creation.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@jurgenwerk jurgenwerk changed the title Let the AI assistant create and delete workspaces AI assistant: Add ability to create and delete workspaces Sep 11, 2026
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