mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
fix(agents): keep plural count visible to localization extraction; drop test cast
Tracked in STA-13605. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f731337b46
commit
b47135214a
@@ -29,7 +29,7 @@ describe('setAgentDefaultSurfaceFromFeatureTip', () => {
|
||||
{ from: 'terminal', to: 'chat', claudeChat: false },
|
||||
{ from: 'chat', to: 'terminal', claudeChat: true }
|
||||
] as const)(
|
||||
'names agents kept on their own surface when switching to $to, and Set all clears them',
|
||||
'names agents kept on their own surface when switching to $to',
|
||||
async ({ from, to, claudeChat }) => {
|
||||
seedSettings({ agentDefaultSurface: from, nativeChatProviders: { claude: claudeChat } })
|
||||
|
||||
@@ -38,11 +38,6 @@ describe('setAgentDefaultSurfaceFromFeatureTip', () => {
|
||||
expect(toast.success).toHaveBeenCalledTimes(1)
|
||||
const options = vi.mocked(toast.success).mock.calls[0]?.[1]
|
||||
expect(String(options?.description)).toContain('Claude')
|
||||
const action = options?.action as { onClick: () => void }
|
||||
action.onClick()
|
||||
await vi.waitFor(() =>
|
||||
expect(useAppStore.getState().settings?.nativeChatProviders).not.toHaveProperty('claude')
|
||||
)
|
||||
expect(useAppStore.getState().settings?.agentDefaultSurface).toBe(to)
|
||||
}
|
||||
)
|
||||
|
||||
@@ -58,12 +58,20 @@ export function showKeptSurfaceNotice({
|
||||
? translate(
|
||||
'settings.agents.defaultSurfaceKeptTerminal',
|
||||
'{{agents}} stay in the terminal, as you set.',
|
||||
{ ...values, defaultValue_one: '{{agents}} stays in the terminal, as you set.' }
|
||||
{
|
||||
...values,
|
||||
count: values.count,
|
||||
defaultValue_one: '{{agents}} stays in the terminal, as you set.'
|
||||
}
|
||||
)
|
||||
: translate(
|
||||
'settings.agents.defaultSurfaceKeptChat',
|
||||
'{{agents}} stay as chats, as you set.',
|
||||
{ ...values, defaultValue_one: '{{agents}} stays as a chat, as you set.' }
|
||||
{
|
||||
...values,
|
||||
count: values.count,
|
||||
defaultValue_one: '{{agents}} stays as a chat, as you set.'
|
||||
}
|
||||
),
|
||||
action: {
|
||||
label: chat
|
||||
|
||||
Reference in New Issue
Block a user