chore: 还原 PR #44 手写实现,准备由 Codex 按新规则重写

This commit is contained in:
RuoJi6 committed 2026-10-24 21:17:17 +08:00
1 parent 3b2887f349
commit ba3025d04f
15 files changed
+26 -254

No files matched your search

+1 -4
View File
@@ -746,10 +746,7 @@ func (e *Engine) ReadyFor(t *Task) bool {
// but no-op until an LLM is configured (so a task created while idle picks up
// automatically once LLM is set from the UI).
func (e *Engine) Run(ctx context.Context, t *Task) {
workers := t.WorkerCount
if workers <= 0 {
workers = e.m.Workers()
}
workers := e.m.Workers()
e.deleteMu.RLock()
if e.IsDeleting(t.ID) {
e.deleteMu.RUnlock()