Skip to content

Comments

fix(acp): accept null in formatOptionalDetail type#705

Open
seibe wants to merge 1 commit intoslopus:mainfrom
seibe:fix/acp-null-type
Open

fix(acp): accept null in formatOptionalDetail type#705
seibe wants to merge 1 commit intoslopus:mainfrom
seibe:fix/acp-null-type

Conversation

@seibe
Copy link

@seibe seibe commented Feb 21, 2026

Summary

Widens the text parameter of formatOptionalDetail from string | undefined to string | null | undefined to match actual call sites that pass null.

The runtime falsy check (if (!text)) already handled null correctly, but the TypeScript type was too narrow.

Related

Test plan

  • ACP agent runs without type errors when formatOptionalDetail receives null

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