Skip to content

fix(gateway): workspace ops broke on the documented Value::Null extra#190

Merged
haowei2000 merged 1 commit into
developfrom
fix/workspace-extra-null
Jul 14, 2026
Merged

fix(gateway): workspace ops broke on the documented Value::Null extra#190
haowei2000 merged 1 commit into
developfrom
fix/workspace-extra-null

Conversation

@haowei2000

Copy link
Copy Markdown
Collaborator

Hotfix for a #186 regression that shipped in #187: the typed WorkspaceReqExtra parse rejected Value::Null, which is the documented "no op-specific fields" value most read/git workspace callers pass — every workspace ls/read/git browse returned bad workspace op field: invalid type: null, expected struct WorkspaceReqExtra.

Null now maps to defaults; deny_unknown_fields still catches typo'd keys. Regression test added (null / {} / valid / typo).

🤖 Generated with Claude Code

The typed WorkspaceReqExtra conversion (#186) rejected `Value::Null` — the
value most read/git workspace callers pass per workspace_call's own docs
("Pass Value::Null (or an empty object) when the op needs none") — turning
every ls/read/git browse into `bad workspace op field: invalid type: null`.
Null now maps to defaults via parse_workspace_extra; deny_unknown_fields
still rejects typo'd keys. Regression test covers null/{}/valid/typo.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@haowei2000
haowei2000 merged commit 9861095 into develop Jul 14, 2026
10 checks passed
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.

1 participant