feature(ux): Show chat title and generation state in browser tab title
Currently StudioLayout.vue sets document.title to a static Playground | AIStudio2API on activation and AIStudio2API on deactivation. When switching to another browser tab or back to the console tabs during a long generation (Thinking, Agent mode, Compare mode, or waiting for a functionCall response), the tab title does not indicate the active chat or its status.
Proposed behavior for PlaygroundPage (no extra settings):
- Show the current chat name in
document.title(<chat title> | AIStudio2API, matching the toolbar title). - Prefix active/actionable states so they remain readable on narrow tabs:
- Running:
Thinking…/Answering…(or a singleGenerating…— happy to align on preference) - Awaiting manual
functionCallresponse - Background completion/error (
Done/Errorwhen the run finishes while the browser tab is hidden or while viewing console tabs, cleared once viewed) - Compare mode: aggregated status across panes
- Running:
- Preserve the active background status in
document.titlewhile browsing console tabs (Logs/Settings) and restoreAIStudio2APIonce idle and viewed.
Questions:
- Prefer detailed phases (
Waiting/Thinking/Answering) or a singleGenerating…state to avoid title flicker in Agent mode? - Include
session.titleindocument.titlefor Playground only, or also align media pages (Image/Video/Speech/Music)?
I can make PR.
it's partially implemented in v0.3.9, others left for the next version
Wow, that's what I was talking about:
Thank you! Also, feel free to close the issue once the feature is completely done, though it already looks great to me.