fix: Enable godmode for dev-center to open worker files in editor (#2224)

Fixes #2218

The DEV Center was unable to open worker files in the text editor because
it lacked godmode permissions. The file_paths parameter in puter.ui.launchApp
requires the calling app to have godmode=1 in order to work.

Changes:
- Added database migration 0044_dev-center-godmode.sql to set godmode=1
  for the dev-center app (uid: app-0b37f054-07d4-4627-8765-11bd23e889d4)
- Updated SqliteDatabaseAccessService.js to include the new migration

This allows DEV Center to successfully pass file paths when launching the
editor app, fixing the issue where clicking on a worker file path resulted
in an empty editor window.
This commit is contained in:
Om vataliya
2026-01-06 16:19:29 -08:00
committed by GitHub
parent a5bbc7e95b
commit 677426cbe7
2 changed files with 7 additions and 0 deletions
@@ -167,6 +167,9 @@ class SqliteDatabaseAccessService extends BaseDatabaseAccessService {
[39, [
'0043_add_dt.sql',
]],
[40, [
'0044_dev-center-godmode.sql',
]],
];
// Database upgrade logic
@@ -0,0 +1,4 @@
-- Enable godmode for dev-center app to allow launching editor with file_paths
-- This fixes issue #2218 where worker files couldn't be opened from DEV Center
UPDATE `apps` SET `godmode`=1 WHERE `uid`='app-0b37f054-07d4-4627-8765-11bd23e889d4';