[claude] Bannerlord M2 campaign actions — fix test patching and malformed entry filtering (#1094) #1262

Closed
claude wants to merge 2 commits from claude/issue-1094 into main

2 Commits

Author SHA1 Message Date
Alexander Whitestone
1a4653570e fix: fix test patching in campaign_loop and malformed entry filtering in campaign_state
Some checks failed
Tests / lint (pull_request) Failing after 29s
Tests / test (pull_request) Has been skipped
- Remove redundant local GabsClient import inside run() that bypassed
  unittest.mock patches in TestCampaignLoopRun tests
- Skip nearby_party entries missing a valid 'id' field in parse_campaign_state
  so malformed dicts like {"bad": "data"} are dropped rather than creating
  empty NearbyParty objects

Fixes #1094

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 21:34:18 -04:00
Alexander Whitestone
46ef9d3aba WIP: Claude Code progress on #1094
Automated salvage commit — agent session ended (exit 124).
Work in progress, may need continuation.
2026-03-23 14:26:15 -04:00