Skip to content

fix(activity-logs): remove errorMessage from updateActivityLogStatus#1576

Merged
Scra3 merged 3 commits intomainfrom
fix/remove-error-message-activity-log
Apr 30, 2026
Merged

fix(activity-logs): remove errorMessage from updateActivityLogStatus#1576
Scra3 merged 3 commits intomainfrom
fix/remove-error-message-activity-log

Conversation

@Scra3
Copy link
Copy Markdown
Member

@Scra3 Scra3 commented Apr 30, 2026

Summary

  • Removes errorMessage from UpdateActivityLogStatusParams in forestadmin-client
  • Removes the field from all callers in mcp-server (source + tests)
  • Removes from forestadmin-client body construction ({ status } only)

Context

The server Joi validator only accepts { status } in the PATCH body for activity log status updates. errorMessage was added to the client interfaces but never implemented server-side, causing 400 ValidationFailedError: "errorMessage" is not allowed on every activity log status update call.

Test plan

  • yarn workspace @forestadmin/forestadmin-client test — 283 tests pass
  • yarn workspace @forestadmin/mcp-server test — 541 tests pass
  • Both packages build without TypeScript errors

🤖 Generated with Claude Code

Note

Remove errorMessage from updateActivityLogStatus request body

Strips the errorMessage field from activity log status update payloads across the forestadmin-client and mcp-server packages. markActivityLogAsFailed now calls updateActivityLogStatus with only { status: 'failed' }, and the UpdateActivityLogStatusParams interface and related types no longer include an errorMessage property.

  • Behavioral Change: failed activity logs no longer report an error message to the Forest Admin server; the message is still used locally to construct the thrown Error.

Macroscope summarized a48ca8b.

…interface

The server Joi validator only accepts { status } in the PATCH body and
rejects any unknown field. errorMessage was added client-side but was
never implemented server-side, causing 400 ValidationFailedError on
every status update call.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@qltysh
Copy link
Copy Markdown

qltysh Bot commented Apr 30, 2026

Qlty


Coverage Impact

⬆️ Merging this pull request will increase total coverage on main by 0.01%.

Modified Files with Diff Coverage (2)

RatingFile% DiffUncovered Line #s
Coverage rating: A Coverage rating: A
packages/mcp-server/src/utils/activity-logs-creator.ts100.0%
Coverage rating: A Coverage rating: A
packages/forestadmin-client/src/activity-logs/index.ts100.0%
Total100.0%
🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

alban bertolini and others added 2 commits April 30, 2026 15:36
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Scra3 Scra3 merged commit 19585fc into main Apr 30, 2026
29 checks passed
@Scra3 Scra3 deleted the fix/remove-error-message-activity-log branch April 30, 2026 14:40
forest-bot added a commit that referenced this pull request Apr 30, 2026
## @forestadmin/forestadmin-client [1.39.5](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/forestadmin-client@1.39.4...@forestadmin/forestadmin-client@1.39.5) (2026-04-30)

### Bug Fixes

* **activity-logs:** remove errorMessage from updateActivityLogStatus ([#1576](#1576)) ([19585fc](19585fc))
forest-bot added a commit that referenced this pull request Apr 30, 2026
## @forestadmin/mcp-server [1.11.7](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/mcp-server@1.11.6...@forestadmin/mcp-server@1.11.7) (2026-04-30)

### Bug Fixes

* **activity-logs:** remove errorMessage from updateActivityLogStatus ([#1576](#1576)) ([19585fc](19585fc))

### Dependencies

* **@forestadmin/agent-client:** upgraded to 1.5.6
* **@forestadmin/forestadmin-client:** upgraded to 1.39.5
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