mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-09 19:52:44 +00:00
trim opencode title
This commit is contained in:
parent
9c9cbb3e81
commit
9cb0f21b4e
1 changed files with 1 additions and 1 deletions
|
|
@ -644,7 +644,7 @@ export namespace Session {
|
|||
return Session.update(input.sessionID, (draft) => {
|
||||
const cleaned = result.text.replace(/<think>[\s\S]*?<\/think>\s*/g, "")
|
||||
const title = cleaned.length > 100 ? cleaned.substring(0, 97) + "..." : cleaned
|
||||
draft.title = title
|
||||
draft.title = title.trim()
|
||||
})
|
||||
})
|
||||
.catch(() => {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue