Skip to content

chore(code): gate unsafe cloud modes behind settings#1691

Merged
tatoalo merged 1 commit intomainfrom
chore/code/unsafe-mode-toggle-gating
Apr 16, 2026
Merged

chore(code): gate unsafe cloud modes behind settings#1691
tatoalo merged 1 commit intomainfrom
chore/code/unsafe-mode-toggle-gating

Conversation

@tatoalo
Copy link
Copy Markdown
Contributor

@tatoalo tatoalo commented Apr 16, 2026

the existing settings toggle should control whether unsafe modes are exposed, but that policy should sit on top of the new (introduced in this stack) correct provider-specific mode plumbing.

This fixes also a UX/state updating consistency issue, hiding an unsafe mode must not rewrite or misreport the actual live session mode during reconnects.

Copy link
Copy Markdown
Contributor Author

tatoalo commented Apr 16, 2026

@tatoalo tatoalo self-assigned this Apr 16, 2026
@tatoalo tatoalo force-pushed the chore/code/cloud-mode-plumbing branch from 35e1b1c to f07941b Compare April 16, 2026 14:20
@tatoalo tatoalo force-pushed the chore/code/unsafe-mode-toggle-gating branch 2 times, most recently from 9570ec6 to d615b72 Compare April 16, 2026 14:30
@tatoalo tatoalo force-pushed the chore/code/cloud-mode-plumbing branch from f07941b to 032910a Compare April 16, 2026 14:30
@tatoalo tatoalo force-pushed the chore/code/unsafe-mode-toggle-gating branch from d615b72 to 8511fc1 Compare April 16, 2026 14:35
@tatoalo tatoalo marked this pull request as ready for review April 16, 2026 14:36
@tatoalo tatoalo requested review from a team April 16, 2026 14:55
@tatoalo tatoalo force-pushed the chore/code/unsafe-mode-toggle-gating branch from 8511fc1 to f30bfbe Compare April 16, 2026 16:19
@tatoalo tatoalo force-pushed the chore/code/cloud-mode-plumbing branch from 032910a to 3aa8f3e Compare April 16, 2026 16:19
@tatoalo tatoalo force-pushed the chore/code/unsafe-mode-toggle-gating branch from f30bfbe to 8d77aed Compare April 16, 2026 16:23
@tatoalo tatoalo force-pushed the chore/code/cloud-mode-plumbing branch from 3aa8f3e to 7d55f4d Compare April 16, 2026 16:23
@tatoalo tatoalo force-pushed the chore/code/unsafe-mode-toggle-gating branch from 8d77aed to 027ea92 Compare April 16, 2026 16:28
const { setShowRawLogs } = useSessionViewActions();
const pendingPermissions = usePendingPermissionsForTask(taskId);
const modeOption = useModeConfigOptionForTask(taskId);
const { allowBypassPermissions } = useSettingsStore();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing use effects, that's what it's all about

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

always has been

image

@tatoalo tatoalo force-pushed the chore/code/cloud-mode-plumbing branch from 7d55f4d to caa5d68 Compare April 16, 2026 18:38
@tatoalo tatoalo force-pushed the chore/code/unsafe-mode-toggle-gating branch from 027ea92 to 09aecab Compare April 16, 2026 18:38
@tatoalo tatoalo force-pushed the chore/code/cloud-mode-plumbing branch 2 times, most recently from 67b2c19 to 48a73f3 Compare April 16, 2026 18:49
@tatoalo tatoalo force-pushed the chore/code/unsafe-mode-toggle-gating branch from 09aecab to 4299d06 Compare April 16, 2026 18:49
@tatoalo tatoalo changed the base branch from chore/code/cloud-mode-plumbing to graphite-base/1691 April 16, 2026 18:57
@tatoalo tatoalo force-pushed the graphite-base/1691 branch from 48a73f3 to 536a163 Compare April 16, 2026 18:57
@tatoalo tatoalo force-pushed the chore/code/unsafe-mode-toggle-gating branch from 4299d06 to e6a3654 Compare April 16, 2026 18:57
@graphite-app graphite-app bot changed the base branch from graphite-base/1691 to main April 16, 2026 18:58
@tatoalo tatoalo force-pushed the chore/code/unsafe-mode-toggle-gating branch from e6a3654 to 71c0489 Compare April 16, 2026 18:58
@tatoalo tatoalo merged commit a57c9de into main Apr 16, 2026
15 of 16 checks passed
Copy link
Copy Markdown
Contributor Author

tatoalo commented Apr 16, 2026

Merge activity

@tatoalo tatoalo deleted the chore/code/unsafe-mode-toggle-gating branch April 16, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants