fix: remove obsolete slot mechanism (fixes #44) #68

Closed
shoko wants to merge 0 commits from fix/issue-44-remove-obsolete-slot-mechanism into main
Owner

Summary

Removed obsolete slot-based concurrency mechanism since session-counting (PR #65) handles the limit properly.

Changes

  1. Removed obsolete slot mechanism:

    • acquire_agent_slot() function
    • release_agent_slot() function
    • AGENT_COUNT_FILE and AGENT_LOCK_FILE variables
    • run_with_limit() function (unused)
    • release-slot.sh script
  2. Updated cmd_delegate: Now uses fire-and-forget without slot management

  3. Consistent concurrency: Both cmd_start and cmd_delegate use count_active_dev_sessions() for session counting

Why

The slot mechanism was a temporary workaround that never worked properly. Session-counting (PR #65) is the proper solution - it counts actual session files and enforces the MAX_CONCURRENT_AGENTS limit reliably.

Fixes #44

## Summary Removed obsolete slot-based concurrency mechanism since session-counting (PR #65) handles the limit properly. ## Changes 1. **Removed obsolete slot mechanism:** - `acquire_agent_slot()` function - `release_agent_slot()` function - `AGENT_COUNT_FILE` and `AGENT_LOCK_FILE` variables - `run_with_limit()` function (unused) - `release-slot.sh` script 2. **Updated `cmd_delegate`:** Now uses fire-and-forget without slot management 3. **Consistent concurrency:** Both `cmd_start` and `cmd_delegate` use `count_active_dev_sessions()` for session counting ## Why The slot mechanism was a temporary workaround that never worked properly. Session-counting (PR #65) is the proper solution - it counts actual session files and enforces the MAX_CONCURRENT_AGENTS limit reliably. Fixes #44
shoko added 1 commit 2026-04-01 09:05:17 +02:00
The session-counting approach (PR #65) now properly handles agent
concurrency limits. Remove the broken slot-based mechanism:

- Remove acquire_agent_slot() and release_agent_slot() functions
- Remove AGENT_COUNT_FILE and AGENT_LOCK_FILE variables
- Remove unused run_with_limit() function
- Remove release-slot.sh script
- Update cmd_delegate to use fire-and-forget without slot management

Both cmd_start and cmd_delegate now use count_active_dev_sessions()
for concurrency checking.
han approved these changes 2026-04-01 09:17:59 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko closed this pull request 2026-04-01 10:04:43 +02:00

Pull request closed

Sign in to join this conversation.