feat(FN-4135): add always-on web search with locked provider setting
Adds always-on web search capability to the research system, locking the web search provider in settings UI and updating the ResearchView to surface web search as a persistent toggle with agent tool integration, plus corresponding docs and test coverage. Fusion-Task-Id: FN-4135
This commit is contained in:
@@ -95,12 +95,25 @@ describe("resolveResearchSettings", () => {
|
||||
expect(resolved.searchProvider).toBe("brave");
|
||||
});
|
||||
|
||||
it("honors explicit legacy global search provider opt-out", () => {
|
||||
it("forces web search on even when persisted settings disable it", () => {
|
||||
const resolved = resolveResearchSettings({
|
||||
researchGlobalWebSearchProvider: "none",
|
||||
researchGlobalDefaults: {
|
||||
enabledSources: {
|
||||
webSearch: false,
|
||||
pageFetch: true,
|
||||
github: false,
|
||||
localDocs: true,
|
||||
llmSynthesis: true,
|
||||
},
|
||||
},
|
||||
researchSettings: {
|
||||
enabledSources: {
|
||||
webSearch: false,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
expect(resolved.searchProvider).toBe("none");
|
||||
expect(resolved.enabledSources.webSearch).toBe(true);
|
||||
});
|
||||
|
||||
it("supports null-as-delete semantics for researchSettings object", () => {
|
||||
|
||||
Reference in New Issue
Block a user