mirror of
https://github.com/block/buzz.git
synced 2026-11-27 03:31:50 +00:00
Redesign agent AI configuration and defaults (#1935)
Signed-off-by: npub1d6t84ajeg9skp2609l2k6axgcme8x7g7u7luj352r03hcwreg7lqnxcsex <6e967af659416160ab4f2fd56d74c8c6f273791ee7bfc9468a1be37c387947be@sprout-oss.stage.blox.sqprod.co> Signed-off-by: npub1s654z6utm59mkg4tjdqw69tlen05y2hrrwajlck4n2ar0jyx7hfsmp60kf <86a9516b8bdd0bbb22ab9340ed157fccdf422ae31bbb2fe2d59aba37c886f5d3@sprout-oss.stage.blox.sqprod.co> Co-authored-by: npub1d6t84ajeg9skp2609l2k6axgcme8x7g7u7luj352r03hcwreg7lqnxcsex <6e967af659416160ab4f2fd56d74c8c6f273791ee7bfc9468a1be37c387947be@sprout-oss.stage.blox.sqprod.co> Co-authored-by: npub1s654z6utm59mkg4tjdqw69tlen05y2hrrwajlck4n2ar0jyx7hfsmp60kf <86a9516b8bdd0bbb22ab9340ed157fccdf422ae31bbb2fe2d59aba37c886f5d3@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
@@ -3,11 +3,7 @@ import * as React from "react";
|
||||
import { useBakedBuildEnvQuery } from "../hooks";
|
||||
import { useGlobalAgentConfig } from "../useGlobalAgentConfig";
|
||||
import { BUZZ_AGENT_THINKING_EFFORT } from "./buzzAgentConfig";
|
||||
import {
|
||||
countNonSecretInheritedEnvVars,
|
||||
getAdvancedInheritedSummary,
|
||||
getInheritedAgentDefaults,
|
||||
} from "./bakedEnvHelpers";
|
||||
import { getInheritedAgentDefaults } from "./bakedEnvHelpers";
|
||||
|
||||
export function useAgentDialogDefaults({
|
||||
inheritedEnvVars = {},
|
||||
@@ -29,16 +25,7 @@ export function useAgentDialogDefaults({
|
||||
}),
|
||||
[globalConfig.env_vars, inheritedDefaults.effort.value, inheritedEnvVars],
|
||||
);
|
||||
const advancedInheritedSummary = getAdvancedInheritedSummary(
|
||||
inheritedDefaults.effort,
|
||||
countNonSecretInheritedEnvVars(
|
||||
globalConfig.env_vars,
|
||||
BUZZ_AGENT_THINKING_EFFORT,
|
||||
),
|
||||
);
|
||||
|
||||
return {
|
||||
advancedInheritedSummary,
|
||||
globalConfig,
|
||||
inheritedDefaults,
|
||||
inheritedEnvVars: effectiveInheritedEnvVars,
|
||||
|
||||
Reference in New Issue
Block a user