Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(signals): add Claude 5 options to the scout model picker (#98871)

posthog[bot]52dcd2bf55b1
diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutConfigControls.test.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutConfigControls.test.tsx
index 3aff1367c7dd..950c3976aab0 100644
--- a/products/signals/frontend/inbox/components/config/scouts/ScoutConfigControls.test.tsx
+++ b/products/signals/frontend/inbox/components/config/scouts/ScoutConfigControls.test.tsx
@@ -198,7 +198,10 @@ describe('ScoutConfigForm', () => {
// Guards the pin's wire values: a model option must patch the raw model id (not its display
// label), and Default must patch null (not '') — the backend treats null as "clear the pin".
- it('pins a model from the dropdown and clears the pin via Default', () => {
+ it.each([
+ ['Claude Sonnet 5', 'claude-sonnet-5'],
+ ['GPT-5.6 Luna', 'gpt-5.6-luna'],
+ ])('pins %s from the dropdown and clears the pin via Default', (label, modelId) => {
featureFlagLogic.mount()
featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.SCOUTS_MODEL_CONFIG], {
[FEATURE_FLAGS.SCOUTS_MODEL_CONFIG]: true,
@@ -210,10 +213,10 @@ describe('ScoutConfigForm', () => {
)
fireEvent.click(getByLabelText(modelSelectLabel))
- fireEvent.click(getByText('GPT-5.6 Luna'))
- expect(onUpdate).toHaveBeenCalledWith('config-1', { model: 'gpt-5.6-luna' })
+ fireEvent.click(getByText(label))
+ expect(onUpdate).toHaveBeenCalledWith('config-1', { model: modelId })
- rerender(<ScoutConfigForm config={{ ...config, model: 'gpt-5.6-luna' }} onUpdate={onUpdate} />)
+ rerender(<ScoutConfigForm config={{ ...config, model: modelId }} onUpdate={onUpdate} />)
fireEvent.click(getByLabelText(modelSelectLabel))
fireEvent.click(getByText('Default'))
expect(onUpdate).toHaveBeenLastCalledWith('config-1', { model: null })
diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutConfigControls.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutConfigControls.tsx
index e7db3e4ec477..fcdb25e1c6b9 100644
--- a/products/signals/frontend/inbox/components/config/scouts/ScoutConfigControls.tsx
+++ b/products/signals/frontend/inbox/components/config/scouts/ScoutConfigControls.tsx
@@ -14,6 +14,7 @@ import type {
SignalScoutConfigApi as SignalScoutConfig,
} from 'products/signals/frontend/generated/api.schemas'
import { SignalScoutConfigNetworkAccessEnumApi } from 'products/signals/frontend/generated/api.schemas'
+import { MODELS } from 'products/tasks/frontend/modelCatalog.generated'
import {
dailyCronToTime,
@@ -45,11 +46,12 @@ interface ScoutConfigControlsProps {
// The models the picker offers, a deliberate subset of the Tasks catalog the backend
// validates pins against — growing this list is a frontend-only change.
+const SCOUT_MODEL_IDS = ['claude-sonnet-5', 'claude-opus-5', 'gpt-5.6-luna', 'gpt-5.6-terra', 'gpt-5.6-sol']
+
+// Labels come from the generated catalog, so every surface names a model the same way.
const SCOUT_MODEL_OPTIONS: { value: string | null; label: string }[] = [
{ value: null, label: 'Default' },
- { value: 'gpt-5.6-luna', label: 'GPT-5.6 Luna' },
- { value: 'gpt-5.6-terra', label: 'GPT-5.6 Terra' },
- { value: 'gpt-5.6-sol', label: 'GPT-5.6 Sol' },
+ ...SCOUT_MODEL_IDS.map((id) => ({ value: id, label: MODELS.find((model) => model.id === id)?.label ?? id })),
]
interface ScoutConfigFormProps extends ScoutConfigControlsProps {