Implement support for passing a session_id variable to scriptorium to support sticky routing

This commit is contained in:
2026-07-02 21:04:37 -05:00
parent ed879b8bb0
commit a90231ce0c
8 changed files with 78 additions and 5 deletions

View File

@@ -150,7 +150,7 @@ func (trimStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (*Stag
inputPaths := map[string]string{
boundsCfg.TranscriptInputName: normalizedPath,
}
vars := map[string]string{}
vars := withScriptoriumStickySessionVar(nil, sessionID)
metadata["bounds_prompt_id"] = boundsCfg.PromptID
metadata["bounds_profile_id"] = boundsCfg.ProfileID