fix: deprecate --visibility flag instead of removing it#923
Conversation
Removing --visibility in #918 made passing the flag illegal (unknown flag), breaking existing scripts. Restore it as a deprecated flag so it is accepted with a deprecation notice rather than erroring. Drop the hardcoded visibility "private" added in #922 as a backwards- compat shim for servers that still required the field; prod no longer requires it. The field is now sent only when the user explicitly passes the deprecated flag (json omitempty), preserving compatibility with older instances that still mandate it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @ToreMerkely's task in 2m 8s —— View job PR Review: Deprecate
|
Removing --visibility in #918 made passing the flag illegal (unknown
flag), breaking existing scripts. Restore it as a deprecated flag so it
is accepted with a deprecation notice rather than erroring.
Drop the hardcoded visibility "private" added in #922 as a backwards-
compat shim for servers that still required the field; prod no longer
requires it. The field is now sent only when the user explicitly passes
the deprecated flag (json omitempty), preserving compatibility with
older instances that still mandate it.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com