Reuse supplied completion in plans and runs

This commit is contained in:
2026-12-02 15:23:39 +00:00
parent 9367c7b713
commit 6e74b436f6
11 changed files with 336 additions and 22 deletions

View File

@@ -162,7 +162,7 @@ func initializeLockedInvocation(runtime *invocationRuntime) error {
// The unlocked inspection avoids creating invocation state for an invalid
// request. Recheck while holding the session lock in case prior state changed.
if err := validateBoundedPrerequisites(runtime.plan, m); err != nil {
if err := validateBoundedPrerequisites(runtime.plan, m, runtime.cfg); err != nil {
return fmt.Errorf("validate bounded run prerequisites under session lock: %w", err)
}
runtime.started = true