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
fix: staged writes ignore the connection's query timeout #902
StagedWrite::begin / begin_in (src-tauri/crates/mas-core/src/query/staged.rs) runs the agent's write without the connection's query_timeout_secs. execute_routed applies that timeout, so an ordinary statement is killed when it exceeds it. A long staged write is not: if nobody cancels it, it runs unbounded and holds its connection and locks.
Fix
Apply the same timeout execute_routed uses: wrap the statement in a timeout, or set max_execution_time for the session. On expiry, kill the thread the way the executor's timeout path does. Add a connection_lanes-style live test: a profile with a 1 s timeout and a staged SLEEP(5) write must fail with the timeout error. Correct the claim in docs/design/AI_INTEGRATION.md if it says staged writes time out.
Activity