Skip to content

Interactive command gate: Yes / No / Yes-Always for foreground chats - #328

Merged
OlivierTrudeau merged 13 commits into
mainfrom
feat/chat-command-gate
May 1, 2026
Merged

Interactive command gate: Yes / No / Yes-Always for foreground chats#328
OlivierTrudeau merged 13 commits into
mainfrom
feat/chat-command-gate

consolidate legacy confirmation prompts into unified command gate

1757f39
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Apr 30, 2026 in 1m 4s

Annotations

Check warning on line 656 in client/src/components/tool-calls/ToolExecutionWidget.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not use Array index in keys

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3USKECNd9f7yoDcUrz&open=AZ3USKECNd9f7yoDcUrz&pullRequest=328

Check failure on line 240 in server/utils/auth/command_gate.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 29 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3Uh5mujzu44_sbMdiO&open=AZ3Uh5mujzu44_sbMdiO&pullRequest=328

Check warning on line 281 in server/utils/auth/command_gate.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested conditional expression into an independent statement.

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3Uh5mujzu44_sbMdiQ&open=AZ3Uh5mujzu44_sbMdiQ&pullRequest=328

Check warning on line 237 in client/src/hooks/useChatHistory.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3UbZ-P62Ic5jupYRLN&open=AZ3UbZ-P62Ic5jupYRLN&pullRequest=328

Check failure on line 170 in server/utils/auth/command_gate.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Tool call not allowed by user" 3 times.

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3f09p5lndhd1FnZM_H&open=AZ3f09p5lndhd1FnZM_H&pullRequest=328

Check failure on line 343 in server/utils/auth/command_gate.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 25 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3USKIxNd9f7yoDcUr3&open=AZ3USKIxNd9f7yoDcUr3&pullRequest=328

Check warning on line 281 in server/utils/auth/command_gate.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested conditional expression into an independent statement.

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3Uh5mujzu44_sbMdiR&open=AZ3Uh5mujzu44_sbMdiR&pullRequest=328

Check warning on line 349 in server/utils/auth/command_gate.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "block_code".

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3USKIxNd9f7yoDcUr1&open=AZ3USKIxNd9f7yoDcUr1&pullRequest=328

Check warning on line 355 in server/utils/auth/command_gate.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "cmd_hash".

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3USKIxNd9f7yoDcUr2&open=AZ3USKIxNd9f7yoDcUr2&pullRequest=328

Check warning on line 319 in server/utils/auth/command_policy.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use concise character class syntax '\w' instead of '[A-Za-z0-9_]'.

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3USKJKNd9f7yoDcUr4&open=AZ3USKJKNd9f7yoDcUr4&pullRequest=328

Check warning on line 163 in server/utils/cloud/infrastructure_confirmation.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "workflow_instance".

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3UbaE162Ic5jupYRLP&open=AZ3UbaE162Ic5jupYRLP&pullRequest=328

Check warning on line 274 in server/utils/auth/command_gate.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested conditional expression into an independent statement.

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3Uh5mujzu44_sbMdiP&open=AZ3Uh5mujzu44_sbMdiP&pullRequest=328

Check warning on line 14 in server/chat/backend/agent/tools/kubectl_onprem_tool.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "session_id".

See more on https://sonarcloud.io/project/issues?id=Arvo-AI_aurora&issues=AZ3USKKCNd9f7yoDcUr6&open=AZ3USKKCNd9f7yoDcUr6&pullRequest=328