AIStudio2API icon indicating copy to clipboard operation
AIStudio2API copied to clipboard

feature(ux): Show chat title and generation state in browser tab title

Open paralax034 opened this issue 2 weeks ago • 2 comments

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 single Generating… — happy to align on preference)
    • Awaiting manual functionCall response
    • Background completion/error (Done / Error when the run finishes while the browser tab is hidden or while viewing console tabs, cleared once viewed)
    • Compare mode: aggregated status across panes
  • Preserve the active background status in document.title while browsing console tabs (Logs/Settings) and restore AIStudio2API once idle and viewed.

Questions:

  1. Prefer detailed phases (Waiting / Thinking / Answering) or a single Generating… state to avoid title flicker in Agent mode?
  2. Include session.title in document.title for Playground only, or also align media pages (Image/Video/Speech/Music)?

I can make PR.

paralax034 avatar Nov 14 '26 22:11 paralax034

it's partially implemented in v0.3.9, others left for the next version

Mag1cFall avatar Nov 15 '26 00:11 Mag1cFall

Wow, that's what I was talking about:

screenshot

Thank you! Also, feel free to close the issue once the feature is completely done, though it already looks great to me.

paralax034 avatar Nov 15 '26 00:11 paralax034