Skip to content

test(feedback): fix root command-tree assertion broken by the feedback command - #2152

Closed
jariy17 wants to merge 1 commit into
feat/feedback-commandfrom
fix/feedback-root-tree-test
Closed

test(feedback): fix root command-tree assertion broken by the feedback command#2152
jariy17 wants to merge 1 commit into
feat/feedback-commandfrom
fix/feedback-root-tree-test

Conversation

@jariy17

@jariy17 jariy17 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Why

CI on #2149 fails one unit test: createRootHandler > builds the agentcore command tree with its subcommands (src/handlers/root.test.tsx). Registering the feedback command on the root handler added a subcommand the test's hard-coded expected list didn't include ("Received +1").

Fix

One line: add "feedback" to the expected root.children() list, in its registration position (after eval, before config).

Notes

The feedback command was registered on the root handler in PR #2149 but
root.test.tsx's expected subcommand list was not updated, so 'builds the
agentcore command tree with its subcommands' failed in CI. Add 'feedback' in
its registration position (after eval).
@github-actions github-actions Bot added the size/xs PR size: XS label Aug 31, 2026
@jariy17

jariy17 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

Folding this one-line test fix into the feature PR #2149 instead (cherry-picked as c25a04c).

@jariy17 jariy17 closed this Aug 31, 2026
@jariy17
jariy17 deleted the fix/feedback-root-tree-test branch August 31, 2026 20:16
@agentcore-devx-automation agentcore-devx-automation Bot added the agentcore-harness-reviewing AgentCore Harness review in progress label Aug 31, 2026

@agentcore-devx-automation agentcore-devx-automation Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AgentCore Harness Review

Verdict: Looks good

This is a trivial one-line test update adding "feedback" to the expected list of root subcommands in src/handlers/root.test.tsx. The change is correct and low-risk.

Per the author's comment, this PR is being superseded by #2149 (cherry-picked as c25a04c), so it will likely be closed rather than merged — but nothing about the diff itself needs to change.

@agentcore-devx-automation agentcore-devx-automation Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant