Skip to content

feat(desktop): make window title reflect currently selected project a… - #31425

Closed
OnkelTem wants to merge 1 commit into
anomalyco:devfrom
OnkelTem:feature/reactive-titles
Closed

OnkelTem wants to merge 1 commit into
anomalyco:devfrom
OnkelTem:feature/reactive-titles

Conversation

@OnkelTem

@OnkelTem OnkelTem commented Jun 8, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #31423

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The browser window title was static ("OpenCode") regardless of which project or session was active, making it hard to identify tabs when multiple OpenCode windows are open.

Сhanges

Added a reactive createEffect in the layout component that updates document.title based on the current project and session.

The title now shows a single-letter initial, optional session name, and project name (e.g. M|Refactor store - MyProject).

Small refactor: As I also needed the first() function from project-avatar-v2.tsx/avatar-v2.tsx (dups?), I extracted it from those and placed into ./utils/* and exported.

How did you verify your code works?

Tested in web ui.

Screenshots / recordings

https://www.youtube.com/watch?v=TFx2Pl_9Nv4

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@OnkelTem
OnkelTem force-pushed the feature/reactive-titles branch 2 times, most recently from 84520ae to 1b61c98 Compare June 9, 2026 11:55
@OnkelTem
OnkelTem force-pushed the feature/reactive-titles branch from 1b61c98 to e65865e Compare June 13, 2026 21:25
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: make window title show the currently selected session + project

1 participant