mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 14:33:17 -10:00
opencode 2.2.5's real database schema (sqlite3 .schema in an e2e VM after opencode auth import, opencode mcp auth and opencode run; no rows) is now a fixture, internal/vm/testdata/opencode-2.2.5.sql. TestOpencodeCleanSchema builds a database from it, plants a row in every table, cleans it, and checks that no byte of the copy holds a value of credential, account, control_account or account_state, while every other table's row (the session's included) stays; a table in neither list fails the test. The real schema has no session_share (opencode 2.2.5 keeps share_url on session_v2), and its kv table keeps each organization's remote config, fetched with a well-known login, under wellknown:config:<origin>, which the cleaning kept. The cleaning now deletes those rows (opencodeWellknown) and checks none is left. e2e's network check plants one too. Docs: the design note's steps and what it doesn't cover (plugin storage in kv, remote workspaces' bindings); Maintaining says when and how to refresh the fixture. Co-Authored-By: Claude Opus 5.5 <[email protected]>