mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-22 05:42:35 +08:00
fix: change terminal title to OpenCode
This commit is contained in:
@@ -173,14 +173,14 @@ function App() {
|
||||
// Update terminal window title based on current route and session
|
||||
createEffect(() => {
|
||||
if (route.data.type === "home") {
|
||||
renderer.setTerminalTitle("opencode")
|
||||
renderer.setTerminalTitle("OpenCode")
|
||||
return
|
||||
}
|
||||
|
||||
if (route.data.type === "session") {
|
||||
const session = sync.session.get(route.data.sessionID)
|
||||
if (!session || SessionApi.isDefaultTitle(session.title)) {
|
||||
renderer.setTerminalTitle("opencode")
|
||||
renderer.setTerminalTitle("OpenCode")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user