You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P1][bug] query_timeout_secs column exists on profile but is never enforced #283
DESIGN_REQUIREMENTS §FR-2.2.7: "Configurable per-connection query timeout (default: 30s); visual countdown; timeout can be overridden per execution".
Problem
ConnectionProfile.query_timeout_secs is in the migration and on the wire; ConnectionDialog.tsx exposes the field; the UI displays a countdown. But QueryExecutor::execute_owned never reads it — the column is purely cosmetic. A 600s SELECT SLEEP(...) runs to completion unchallenged (or until client timeout fires).
src-tauri/crates/mas-core/src/query/executor.rs (no timeout check)
src/components/connection/ConnectionDialog.tsx (UI field, no enforcement)
Repro
Profile with query_timeout_secs = 2.
Run SELECT SLEEP(10).
Result returns after 10s, not 2s.
Expected
Server returns timeout error at the configured limit. UI shows countdown, then "Query timed out".
Proposed fix
Scope M. Wrap sqlx::raw_sql(...).fetch_many(&pool) in tokio::time::timeout(Duration::from_secs(timeout_secs), ...). On timeout, send KILL QUERY and return CoreError::Timeout. UI countdown pulls from server-emitted progress events.
Acceptance
SELECT SLEEP(10) against query_timeout_secs=2 returns within 2s with a timeout error. Test test_query_timeout passes.
Activity
fix(editor): cancel from the keyboard, and stop a failed cancel clobb…