Skip to content

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

Merged
bra1nDump merged 1 commit intoslopus:mainfrom
seibe:fix/acp-null-type
Apr 13, 2026
Merged

fix(acp): accept null in formatOptionalDetail type#705
bra1nDump merged 1 commit intoslopus:mainfrom
seibe:fix/acp-null-type

Conversation

@seibe
Copy link
Copy Markdown
Contributor

@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

@bra1nDump bra1nDump merged commit 214b759 into slopus:main Apr 13, 2026
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.

2 participants