Slim subagent runtime surface and remove legacy interfaces

This commit is contained in:
LPF
2026-03-17 13:41:12 +08:00
parent 341e578c9f
commit 0674d85ae1
76 changed files with 778 additions and 8782 deletions

View File

@@ -113,26 +113,6 @@ func (s *SessionScheduler) Acquire(ctx context.Context, sessionKey string, keys
}
}
func (s *SessionScheduler) Close() {
if s == nil {
return
}
s.mu.Lock()
defer s.mu.Unlock()
if s.closed {
return
}
s.closed = true
for _, st := range s.sessions {
for _, w := range st.waiters {
select {
case w.ch <- struct{}{}:
default:
}
}
}
}
func (s *SessionScheduler) releaseFunc(sessionKey string, runID uint64) func() {
var once sync.Once
return func() {