What
ax dashboard always opens the SQLite event log and has no Postgres code path. When the controller is configured to use a Postgres event log (eventlog.postgres.dsn / AX_EVENTLOG_DSN), the dashboard does not read it and shows no data.
Where
cmd/ax/dashboard.go (runDashboard):
- Reads
cfg.EventLog.SQLiteConfig.Filename unconditionally (dashboard.go:76)
- Opens the DB with
sql.Open("sqlite", dbPath) (dashboard.go:83)
- Runs
CREATE TABLE IF NOT EXISTS ... on that SQLite handle (dashboard.go:95+)
There is no branch that inspects cfg.EventLog.Postgres, unlike ax serve, which supports Postgres via eventlog.postgres.dsn.
Impact
For a Postgres-backed deployment, ax dashboard:
- ignores the configured Postgres DSN,
- opens/creates an empty SQLite database at the (possibly empty/default)
SQLiteConfig.Filename,
- silently renders an empty conversations/executions list,
with no error indicating the store mismatch.
Repro
- Configure
ax.yaml with a Postgres event log:
eventlog:
postgres:
dsn: ${AX_EVENTLOG_DSN}
- Run the server and create a conversation (
ax serve + ax exec --server ...).
- Run
ax dashboard --config ax.yaml.
- The dashboard is empty; the Postgres data is never read.
Expected
Either:
ax dashboard reads the same event log backend as ax serve (i.e. support Postgres), or
- it fails fast with a clear error when a non-SQLite event log is configured, instead of silently opening an empty SQLite DB.
Notes
Appears to be a known limitation. Filing to track adding Postgres support (or an explicit guard/error).
What
ax dashboardalways opens the SQLite event log and has no Postgres code path. When the controller is configured to use a Postgres event log (eventlog.postgres.dsn/AX_EVENTLOG_DSN), the dashboard does not read it and shows no data.Where
cmd/ax/dashboard.go(runDashboard):cfg.EventLog.SQLiteConfig.Filenameunconditionally (dashboard.go:76)sql.Open("sqlite", dbPath)(dashboard.go:83)CREATE TABLE IF NOT EXISTS ...on that SQLite handle (dashboard.go:95+)There is no branch that inspects
cfg.EventLog.Postgres, unlikeax serve, which supports Postgres viaeventlog.postgres.dsn.Impact
For a Postgres-backed deployment,
ax dashboard:SQLiteConfig.Filename,with no error indicating the store mismatch.
Repro
ax.yamlwith a Postgres event log:ax serve+ax exec --server ...).ax dashboard --config ax.yaml.Expected
Either:
ax dashboardreads the same event log backend asax serve(i.e. support Postgres), orNotes
Appears to be a known limitation. Filing to track adding Postgres support (or an explicit guard/error).