Automattic / Automattic/wp-codebox

Playground latest runtime fails before WordPress boot with SQLite ABSPATH fatal

Offen
#716 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
16
Forks
4
Ø Merge
59 Min.
Gemergte PRs (30 T.)
131

Beschreibung

## Summary
Running a WP Codebox recipe with the default `latest` WordPress runtime can fail before WordPress boots. The failure happens inside Playground's SQLite preload path, before caller code or recipe workflow steps execute.

## Observed failure
A Studio Web website-generation bench run using WP Codebox recipe-run failed during `workflow.steps[0]` startup with:

```text
Recipe workflow steps[0] failed: WordPress Playground CLI exited while booting the runtime with exit code 1.
Fatal error: Uncaught Error: Undefined constant "ABSPATH" in /internal/shared/sqlite-database-integration/constants.php:39
Stack trace:
#0 /internal/shared/sqlite-database-integration/wp-includes/sqlite/db.php(15): require_once()
#1 /internal/shared/mu-plugins/sqlite-database-integration.php(42): require_once('/internal/share...')
#2 /internal/shared/preload/0-sqlite.php(57): require_once('/internal/share...')
#3 /internal/shared/preload/0-sqlite.php(33): Playground_SQLite_Integration_Loader->load_sqlite_integration()
#4 /internal/eval.php(10): Playground_SQLite_Integration_Loader->__call('check_connectio...', Array)
```

## Expected behavior
`latest` should be a valid default WordPress runtime for WP Codebox recipes, including recipes that need the current WordPress AI/client runtime surface.

## Notes
- This is separate from PR #715, which centralizes WP Codebox's default WordPress runtime as `latest`.
- Do not work around this by downgrading the default runtime. Downstream callers can explicitly pin a version when they intentionally need an older runtime, but the default should remain current.

## AI assistance
- **AI assistance:** Yes
- **Tool(s):** OpenCode (GPT-5.5)
- **Used for:** Capturing the observed failure and drafting the issue from lab run output.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne damit, einen WP Codebox recipe-run mit der standardmäßigen neuesten Runtime zu reproduzieren und den Start von workflow.steps[0] zu untersuchen. Verfolge den im Fehler angezeigten SQLite-Preload-Pfad, insbesondere /internal/shared/preload/0-sqlite.php und constants.php, um festzustellen, warum ABSPATH nicht verfügbar ist, bevor WordPress gestartet wird. Fertig ist die Aufgabe, wenn latest erfolgreich startet und der Recipe-Workflow fortfährt, ohne die standardmäßige Runtime herabzustufen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
sqlite, wordpress
Bereich
backend, databases
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.