Skip to content

Add extractSubagentIds unit tests#330

Draft
nightt5879 wants to merge 1 commit intoexospherehost:mainfrom
nightt5879:nightt5879/add-extract-subagent-ids-tests
Draft

Add extractSubagentIds unit tests#330
nightt5879 wants to merge 1 commit intoexospherehost:mainfrom
nightt5879:nightt5879/add-extract-subagent-ids-tests

Conversation

@nightt5879
Copy link
Copy Markdown

Closes #327

Summary

  • Adds __tests__/lib/extract-subagent-ids.test.ts for extractSubagentIds.
  • Covers valid user entries with deduping, malformed JSON, non-user entries, non-hex agent IDs, missing toolUseResult, and empty input.

Verification

  • bun run test:run failed initially because bun was not available on PATH in this Windows environment.
  • C:\Users\14692\Documents\Codex\2026-05-09\pr-3-agent-pr-issue-10\work\.tools\bun-windows-x64\bun.exe install --frozen-lockfile passed after installing portable Bun 1.3.13 under the task workspace.
  • C:\Users\14692\Documents\Codex\2026-05-09\pr-3-agent-pr-issue-10\work\.tools\bun-windows-x64\bun.exe run test:run failed on existing Windows path/environment-sensitive tests: 10 failed files, 65 failed tests, 62 passed files, 1519 passed tests.
  • C:\Users\14692\Documents\Codex\2026-05-09\pr-3-agent-pr-issue-10\work\.tools\bun-windows-x64\bun.exe run test:run __tests__/lib/extract-subagent-ids.test.ts passed: 1 file, 6 tests.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 9, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 06443fee-2135-4651-8b42-f9d494cfc879

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

Add unit tests for lib/extract-subagent-ids.ts

1 participant