Skip to content

[P3.5] TUI dashboard blocks the event loop with synchronous DB loads every 2s #776

Description

@frankbria

Severity: low | Category: infra | Phase: P3.5

Problem

_refresh_data runs 5 synchronous SQLite queries directly on Textual's event loop every 2s, freezing input/rendering on larger workspaces.

Evidence

codeframe/tui/app.py:157

Acceptance criteria

Refresh runs in a thread worker (@work(thread=True)); results posted back to the UI thread; single connection reused.

Dependencies

None


Filed from the SaaS launch-readiness audit. Atomic: one developer, one session. Work order: strictly P0.1 → P3.12 (no forward dependencies).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions