Repository navigation
chore: remove the retired Appwrite Assistant - #14167
Conversation
Appwrite Agent replaced the Assistant, Cloud no longer runs the appwrite/assistant container, and no console calls POST /v1/console/assistant any more. Drop the endpoint, its reference docs, the assistant.read scope and the _APP_ASSISTANT_ENABLED console variable. Stop shipping the appwrite-assistant container and _APP_ASSISTANT_OPENAI_API_KEY in the compose file, .env, variables config and both installers. Upgrades run compose with --remove-orphans, so existing assistant containers are cleaned up. V25 strips assistant.read from keys, functions and sites, as it already does for the retired devKeys scopes. The sdks task also read _APP_ASSISTANT_OPENAI_API_KEY to write AI changelogs and bump versions. SDK releases go through the release-sdk skill now, so remove that path and the --ai flag.
🔵 Tier A · Mergeable after minor fixes
Removes the retired Appwrite Assistant endpoint, scope, configuration, container, and installer UI. It also removes AI-driven SDK version/changelog generation and extends V25 to strip the retired scope from existing documents. The latest commit fixes the leftover duplicate environment key in Docker Compose. Latest changes: The latest commit removes the stray environment mapping left behind by the Assistant service deletion, preserving the message scheduler's existing configuration.
Fix with agent prompt### Issue 1
src/Appwrite/Migration/Version/V25.php:336-339
**Cover retired Assistant scope cleanup in the migration tests**
`tests/unit/Migration/Version/V25Test.php` already exercises document migration, but none of its cases covers the new scope cleanup. Please add coverage for keys, functions, and sites that verifies `assistant.read` is removed while active scopes are preserved, including rerunning the migration.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.📂 Walkthrough · 15
⏳ Still open from earlier reviews · 1
✅ Fixed since the last review · 1
Reviewed the commits since |
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Removing the Assistant (appwrite#14167) also removed the assistant.read scope. OAuth2 clients registered while it existed, such as the ChatGPT app, still request project:assistant.read, and Cloud now rejects their authorization with invalid_scope. Bring the scope back as deprecated so it stays a known scope without granting anything.
Keys, functions, sites and OAuth2 clients store scopes, and MCP hosts such as ChatGPT keep requesting the list they registered with. Removing assistant.read (appwrite#14167) broke those clients with invalid_scope until appwrite#14200 restored it. Record every shipped scope in app/config/scopes/lock.json and fail the unit suite when one disappears from the catalogs or a new one is not locked, so retiring a scope means deprecating it.
…ript appwrite#14167 removed the appwrite-assistant service and _APP_ASSISTANT_OPENAI_API_KEY from the upstream compose file and .env, so the script no longer needs to filter them out.
What
Removes the legacy Appwrite Assistant (
appwrite/assistant). Appwrite Agent replaced it, Cloud no longer runs the container, and no console callsPOST /v1/console/assistant(vibes cleanup: appwrite/vibes#547).Part of appwrite-labs/cloud#6319.
API
Console/Http/Assistant/Create.php(POST /v1/console/assistant) anddocs/references/assistant/.assistant.readscope fromroles.php,scopes/project.phpand the benchmark scope list, plus theassistantCLI SDK exclude entry._APP_ASSISTANT_ENABLEDfromGET /v1/console/variablesand theConsoleVariablesmodel.V25now stripsassistant.readfromkeys,functionsandsites, next to the retireddevKeys.*scopes, so existing keys don't keep a scope the whitelist no longer accepts.Self-hosting
appwrite-assistantservice and_APP_ASSISTANT_OPENAI_API_KEYfromdocker-compose.yml,.envandapp/config/variables.php.Generator: drop theenableAssistantoptional service.docker compose up --remove-orphans, so an existingappwrite-assistantcontainer is removed on upgrade.SDK task
sdksno longer uses_APP_ASSISTANT_OPENAI_API_KEYto generate changelogs and bump versions. SDK releases go through therelease-sdkskill in cloud. Removes the--aiflag,generateVersionAndChangelog(),updateSdkVersion(),updateChangelogFile()andgetSdkConfigPath(). Utopia CLI ignores unknown args, so existing--ai=noinvocations keep working.Housekeeping
product / assistantlabel rule.Breaking
POST /v1/console/assistantis gone, along with theassistant.readkey scope (ProjectKeyScopesenum losesassistant.read).ConsoleVariablesloses_APP_ASSISTANT_ENABLED.Testing
pint --testand PHPStan on every changed PHP file: clean.tests/unit/Docker/Compose/GeneratorTest.phpandtests/unit/Migration: pass.console/assistant,assistant.reador_APP_ASSISTANT_*outside the V25 cleanup.Follow-ups
assistant.readroles/oauth2 entries, thegetSdkConfigPath()override, the compose/Kind chart entries and--ai=noin therelease-sdkskill.appwrite-assistantomission inscripts/generate-compose-data.ts.