When executing SQL from the AI panel, pass the SQL string directly to tryExecute() instead of relying on the executableSql computed property, which could use stale selectedSql or cursorPos values.
When executing SQL from the AI panel, pass the SQL string directly to tryExecute() instead of relying on the executableSql computed property, which could use stale selectedSql or cursorPos values.