Skip to content

fix: null-safe compact + system-only / null payload tests - #19

Merged
royalpinto007 merged 2 commits into
AgentPostmortem:mainfrom
wized2:test/system-only-and-null-payload
Sep 14, 2026
Merged

royalpinto007 merged 2 commits into
AgentPostmortem:mainfrom
wized2:test/system-only-and-null-payload

Conversation

@wized2

@wized2 wized2 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • compact(null) returns an empty payload instead of throwing
  • Tests for null/undefined analyze, system-only objects, and null compact

Related to #2

wized2 and others added 2 commits September 14, 2026 01:50
compact(null) no longer throws. Tests for null/undefined analyze,
system-only payloads, and compact(null).

Related to #2
@royalpinto007
royalpinto007 merged commit d03b73c into AgentPostmortem:main Sep 14, 2026
1 check passed
royalpinto007 added a commit that referenced this pull request Sep 14, 2026
* test: empty messages and no-op compact edge cases

* fix: handle null payload in compact; cover system-only edge cases (#19)

compact(null) no longer throws. Tests for null/undefined analyze,
system-only payloads, and compact(null).

Related to #2

Co-authored-by: wized2 <code@canvas.app>
Co-authored-by: royalpinto007 <royalpinto007@gmail.com>

---------

Co-authored-by: wized2 <code@canvas.app>
Co-authored-by: royalpinto007 <royalpinto007@gmail.com>
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