fix(claude): strip C3 telemetry opt-out so Remote Control works
claude-code disables feature-flag evaluation when DO_NOT_TRACK or DISABLE_TELEMETRY is set, and Remote Control is gated on a feature flag. The global C3 privacy override therefore silently disabled /remote-control and --remote-control. The wrapper now removes both variables from the claude process environment only, whenever the C3 privacy override is active, independent of the C1 wrapper gate.
This commit is contained in:
+16
-6
@@ -31,6 +31,13 @@
|
|||||||
#
|
#
|
||||||
# All arguments are forwarded verbatim to the real claude binary.
|
# All arguments are forwarded verbatim to the real claude binary.
|
||||||
#
|
#
|
||||||
|
# When the C3 privacy override is active, DO_NOT_TRACK and
|
||||||
|
# DISABLE_TELEMETRY are removed from the claude process environment
|
||||||
|
# only. claude-code turns off feature-flag evaluation when either is
|
||||||
|
# set, and Remote Control (/remote-control, --remote-control) is gated
|
||||||
|
# on a feature flag, so the global opt-out otherwise disables it. This
|
||||||
|
# applies even when the C1 wrapper behavior is disabled.
|
||||||
|
#
|
||||||
# Opinionated component (C1): when disabled via __fish_config_op_aliases
|
# Opinionated component (C1): when disabled via __fish_config_op_aliases
|
||||||
# (or the __fish_config_opinionated master), the command is passed through
|
# (or the __fish_config_opinionated master), the command is passed through
|
||||||
# to the real claude binary unchanged.
|
# to the real claude binary unchanged.
|
||||||
@@ -46,13 +53,16 @@
|
|||||||
# claude --resume
|
# claude --resume
|
||||||
# claude "Explain the recent changes"
|
# claude "Explain the recent changes"
|
||||||
function claude --wraps=claude --description 'claude wrapper: ensures AGENTS/ is scaffolded before launch'
|
function claude --wraps=claude --description 'claude wrapper: ensures AGENTS/ is scaffolded before launch'
|
||||||
if not __fish_config_op_enabled (status current-function)
|
# Remote Control needs feature flags, which the C3 privacy vars disable
|
||||||
command claude $argv
|
set -l strip
|
||||||
return $status
|
if __fish_config_op_enabled config.fish privacy
|
||||||
|
set strip -u DO_NOT_TRACK -u DISABLE_TELEMETRY
|
||||||
end
|
end
|
||||||
|
|
||||||
agents-init --quiet
|
if __fish_config_op_enabled (status current-function)
|
||||||
agents-vault --quiet
|
agents-init --quiet
|
||||||
|
agents-vault --quiet
|
||||||
|
end
|
||||||
|
|
||||||
command claude $argv
|
env $strip claude $argv
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user