[Bug] Unified Permissions fail to save & SIGABRT crash corrupts database (v1.22.2)

Environment:

  • OS: macOS
  • App Version: Antigravity v1.22.2 / Core 1.107.0

This report details two regressions regarding agent permissions and database shutdown. The agent permissions regression is highly dangerous.


Bug 1: Unified Permissions System fails to persist settings

Summary:
The new Agent permissions UI introduced in v1.22.2 accepts rules but does not write them to disk. When the application is fully quit and restarted, the permission rules are lost.

Expected Behaviour:
Agent permission rules are persisted to disk upon entry and survive application restarts.

Actual Behaviour:
On restart, the agent permissions UI is reset and the agent is unrestricted. This left my agent in always proceed mode without any of the safety permissions I’d set.


Bug 2: SIGABRT during sqlite3 finalization

Summary:
Closing the application triggers a SIGABRT in node_sqlite3. On the next boot, state.vscdb evaluates as invalid and all conversation history is wiped.

Expected Behaviour:
The application closes gracefully, state.vscdb write-ahead logs sync, and conversation history is retained on the next launch.

Actual Behaviour:
The application core-dumps on exit with the following stack trace:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x000000018f3a3874 __pthread_kill + 8
1   libsystem_pthread.dylib         0x000000018f3d88fc pthread_kill + 288
2   libsystem_c.dylib               0x000000018f2e8d98 abort + 128
3   node_sqlite3.node               0x0000000115b02170 node_sqlite3::Statement::Finalize_(node_sqlite3::Baton*) + 156

On the subsequent boot, the local SQLite database (globalStorage/state.vscdb) which tracks context is reset, resulting in the loss of the trajectory summaries and conversational history.

bump; this is a safety issue

bump; issue persists on latest update