mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 08:03:39 +00:00
fix(agent-status): honor opted-out synthetic profiles
This commit is contained in:
@@ -240,6 +240,7 @@ describe('collectAgentTitleEvidence', () => {
|
||||
|
||||
it('does not invent synthetic titles for an opted-out profile', () => {
|
||||
expect(agentFor('OpenCode ready')).toBeNull()
|
||||
expect(agentFor('⠋ OpenCode')).toBeNull()
|
||||
expect(reasonFor('OpenCode ready')).toBe('free-text-only')
|
||||
})
|
||||
|
||||
|
||||
@@ -198,7 +198,11 @@ function agentForSyntheticTitle(text: string): TuiAgent | null {
|
||||
const emittedLabels = [profile.permissionLabel, profile.idleLabel]
|
||||
if (profile.synthesizeWorkingTitle !== false) {
|
||||
// Working labels are emitted only as spinner frames; a bare name is free text.
|
||||
if (containsAgentSpinnerGlyph(trimmed) && normalized === profile.workingLabel.toLowerCase()) {
|
||||
if (
|
||||
profile.synthesizeTerminalTitle !== false &&
|
||||
containsAgentSpinnerGlyph(trimmed) &&
|
||||
normalized === profile.workingLabel.toLowerCase()
|
||||
) {
|
||||
return agent
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user