Skip to content

fix(#3996): keep image-output models eligible for session titles - #4021

Draft
aheritier wants to merge 1 commit into
gemini-image-request-guardfrom
title-generation-model-filter
Draft

fix(#3996): keep image-output models eligible for session titles#4021
aheritier wants to merge 1 commit into
gemini-image-request-guardfrom
title-generation-model-filter

Conversation

@aheritier

@aheritier aheritier commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

What

Keeps image-output-capable models eligible for session-title generation while preserving the title-generation model filter and configuration behavior.

Why

Title generation should not discard otherwise valid models merely because they advertise image output.

Validation

task test; session-title, runtime, server, and configuration tests.

Test instructions

Run:

task test

Configure an image-output-capable model and create a normal session that requires title generation. Expected: the model remains eligible for title generation, a title is produced, and the existing title-generation filtering behavior is preserved.

Title generation is an explicitly text-only call, so image-output-capable
models remain valid title candidates and may fall through to the next model on
failure. Preserve title_model -> agent model -> fallbacks order, skip nil
providers, and return nil only when no configured candidate remains.

Apply the same construction behavior to LocalRuntime, the server session path,
and the debug title command. Tests pin image-output candidate ordering,
fallback, and isolation from the main generation stream.
@aheritier aheritier added area/docs Documentation changes area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/sessions For features/issues/fixes related to session lifecycle (resume, persistence, export) kind/fix PR fixes a bug (maps to fix:). Use on PRs only. labels Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs Documentation changes area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/sessions For features/issues/fixes related to session lifecycle (resume, persistence, export) kind/fix PR fixes a bug (maps to fix:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant