Skip to content

fix: supervisor race condition, store.ts error handling#32

Open
Chasen-Liao wants to merge 20 commits into
cosmicstack-labs:mainfrom
Chasen-Liao:fix/improvements-2026-05-03
Open

fix: supervisor race condition, store.ts error handling#32
Chasen-Liao wants to merge 20 commits into
cosmicstack-labs:mainfrom
Chasen-Liao:fix/improvements-2026-05-03

Conversation

@Chasen-Liao
Copy link
Copy Markdown
Contributor

Summary

  • Add scheduleLock to SubAgentSupervisor to prevent concurrent queue processing that could exceed max concurrent agents
  • Add try/catch error handling to ShortTermMemory.saveToDisk() for graceful file write failure handling
  • Add .claude/ to .gitignore to prevent skill documentation from being committed

Test plan

  • All existing tests pass (27 tests)
  • Build succeeds

🤖 Generated with Claude Code

Chasen-Liao and others added 20 commits May 3, 2026 16:06
…claude dir

- Add scheduleLock to SubAgentSupervisor to prevent concurrent queue processing
  which could cause race conditions where max concurrent agents was exceeded
- Add try/catch error handling to ShortTermMemory.saveToDisk() to gracefully
  handle file write failures instead of crashing
- Add .claude/ to .gitignore to prevent skill documentation from being committed
- Update yaml dependency version

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add MiniMax LLM provider that uses the Anthropic SDK format with
base URL https://api.minimaxi.com/anthropic. Includes full integration
with provider registry, configuration flow, and API key validation.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add missing minimax provider configuration in getDefaultConfig()
with environment variable support MINIMAX_API_KEY, MINIMAX_BASE_URL,
MINIMAX_MODEL, and MINIMAX_ENABLED.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Remove redundant await in MiniMaxProvider.streamText()
- Ensure scheduleLock is released in SubAgentSupervisor error path

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add MINIMAX_PREFERRED_MODELS constant and add minimax to
preferredByProvider records in provider-models.ts.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The correct endpoint is https://api.minimaxi.com/anthropic/v1/messages

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add fetchMiniMaxModels function to fetch available models
from MiniMax API /v1/models endpoint during setup.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Fix Node.js version to 18+ in architecture section
- Add exponential backoff crash recovery description to daemon mode
- Expand contributing section with Agentic Expertise principles,
  code quality guidelines, getting started steps, and PR guidelines
- Add Feishu access state and config helpers in config.ts
- Add FeishuChannel adapter using @larksuiteoapi/node-sdk
- Add channel-routing.ts with pickOutboundChannelType helper
- Add Feishu setup wizard prompts in CLI setup flow
- Update README with Feishu documentation
- Add Feishu CLI commands: list, approve, reject, remove, promote, demote, reset
- Fix review feedback: JSON.parse validation, non-null assertions, WebSocket error handling
- Add tests for Feishu config helpers and adapter functions
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