Skip to content

Reviewer cleanups for #2667: single enablement flag, drop unused NAME, assertNull - #3

Closed
Buktal wants to merge 1 commit into
chcodex:fix/artifact-delivery-toolfrom
Buktal:review-fixes-2667
Closed

Reviewer cleanups for #2667: single enablement flag, drop unused NAME, assertNull#3
Buktal wants to merge 1 commit into
chcodex:fix/artifact-delivery-toolfrom
Buktal:review-fixes-2667

Conversation

@Buktal

@Buktal Buktal commented Sep 2, 2026

Copy link
Copy Markdown

Small follow-ups from review of agentscope-ai#2667 — merging this into fix/artifact-delivery-tool folds them into that PR:

  • extract a single artifactDeliveryEnabled boolean shared by the workspace-prompt flag and the deliver_artifact registration so the two cannot drift
  • drop the unused ArtifactDeliveryTool.NAME constant (annotation, middleware and tests all use the literal)
  • use assertNull instead of assertEquals(null, ...) in the tool test

Verified: full agentscope-harness module test suite green and spotless:check clean.

- extract a single artifactDeliveryEnabled boolean shared by the workspace
  prompt flag and the deliver_artifact registration so the two cannot drift
- drop the unused ArtifactDeliveryTool.NAME constant (annotation, middleware
  and tests all use the literal)
- use assertNull instead of assertEquals(null, ...) in the tool test
@Buktal Buktal closed this Sep 2, 2026
@Buktal

Buktal commented Sep 2, 2026

Copy link
Copy Markdown
Author

That PR was my mistake — the commit has been pushed directly to the PR branch instead (see agentscope-ai#2667, now includes refactor(harness): minor cleanups for artifact delivery tool). Sorry for the noise.

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