on main help sign in
fix(test): set a fixed attribution to avoid system prompt mismatch
commitc094eaf6c73a02e1972ce1d323175b92d4315d5e authorAndrey Nering <andreynering@users.noreply.github.com> dateWed 12 Nov 2025, 19:24 (1 year ago) parent13f7c0e
1 file changed+7
internal/agent/common_test.go+7
internal/agent/common_test.go+7
@@ -171,6 +171,13 @@ func coderAgent(r *vcr.Recorder, env fakeEnv, large, small fantasy.LanguageModel
171171 return nil, err
172172 }
173173
174+ // NOTE(@andreynering): Set a fixed config to ensure cassettes match
175+ // independently of user config on `$HOME/.config/crush/crush.json`.
176+ cfg.Options.Attribution = &config.Attribution{
177+ TrailerStyle: "co-authored-by",
178+ GeneratedWith: true,
179+ }
180+
174181 systemPrompt, err := prompt.Build(context.TODO(), large.Provider(), large.Model(), *cfg)
175182 if err != nil {
176183 return nil, err