mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-14 13:27:38 -07:00
refactor(core): unify InjectionService API to single onInjection interface
Remove legacy onUserHint/offUserHint/addUserHint methods. All callers now use addInjection(text, source) and onInjection/offInjection with source-based filtering where needed.
This commit is contained in:
@@ -611,7 +611,7 @@ export class AppRig {
|
||||
async addUserHint(hint: string) {
|
||||
if (!this.config) throw new Error('AppRig not initialized');
|
||||
await act(async () => {
|
||||
this.config!.injectionService.addUserHint(hint);
|
||||
this.config!.injectionService.addInjection(hint, 'user_steering');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user