Synced from monorepo
Synced from monorepo Changes: - Report invalid MCP server config instead of failing startup - Keep completed terminal output when the gateway connection is lost - Show a duration-only detail view for single-task task output - Don't let a stale registry turn counter hide local sessions - Raise the file-descriptor soft limit on Linux and log effective limits at startup - Stop aborting when HTTP client construction fails - Make session thread and runtime spawn failures recoverable - Fix main-prompt paste parity in the question freeform input - Fire SessionEnd hooks on /exit and headless quit - Embed the deployment-config signing public key - Repaint paste-chip background on inline panel inputs - Security: prevent acceptEdits from auto-approving agent writes into the always-trusted global hook root - Fix stacked "Worked for" markers so parks render as status and turns close with exactly one marker - Parse hooks from config files - Add a remote kill-switch for managed-config signature verification - Security: fix workspace file-reference resolution bypassing workspace filesystem confinement Source-Revision: d02693a856a54f1030695b36b91d276e96b30b23
This commit is contained in:
parent
6e38642082
commit
47348d13ec
138 changed files with 7283 additions and 5796 deletions
|
|
@ -226,6 +226,23 @@ pub enum SettingValue {
|
|||
Int(i64),
|
||||
}
|
||||
|
||||
/// Why `coding_data_sharing` cannot be changed in the settings modal.
|
||||
/// Computed by `AppView::coding_data_sharing_lock`.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum CodingDataSharingLock {
|
||||
Zdr,
|
||||
TeamManaged,
|
||||
}
|
||||
|
||||
impl CodingDataSharingLock {
|
||||
pub fn reason(self) -> &'static str {
|
||||
match self {
|
||||
Self::Zdr => "Your team has Zero Data Retention.",
|
||||
Self::TeamManaged => "Managed by your team admin.",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Snapshot of pager-local state captured when the modal opens.
|
||||
/// Used by `current_value_for` to render against LIVE state rather
|
||||
/// than the on-disk `UiConfig`. Refreshed by
|
||||
|
|
@ -252,6 +269,8 @@ pub struct PagerLocalSnapshot {
|
|||
/// `opt_out == false` → canonical "opt-in". Snapshot default is
|
||||
/// `true` (opted out) to match the safer consumer default.
|
||||
pub coding_data_sharing_opt_out: bool,
|
||||
/// Why `coding_data_sharing` cannot be changed here (`None` = editable).
|
||||
pub coding_data_sharing_lock: Option<CodingDataSharingLock>,
|
||||
/// Whether plan mode is active. Uses effective state
|
||||
/// (`pending.unwrap_or(active)`) so rapid toggles don't double-send.
|
||||
/// Refreshed on all mutation paths including ACP `CurrentModeUpdate`.
|
||||
|
|
@ -291,6 +310,7 @@ impl Default for PagerLocalSnapshot {
|
|||
current_model_name: None,
|
||||
available_models: Vec::new(),
|
||||
coding_data_sharing_opt_out: true,
|
||||
coding_data_sharing_lock: None,
|
||||
plan_mode_active: false,
|
||||
show_tips: None,
|
||||
auto_update: None,
|
||||
|
|
|
|||
Loading…
Reference in a new issue