mirror of
https://github.com/sst/opencode.git
synced 2025-08-31 10:17:26 +00:00
run: truncate prompt
This commit is contained in:
parent
0f93ecd564
commit
27f7e02f12
1 changed files with 2 additions and 1 deletions
|
@ -81,7 +81,8 @@ export const RunCommand = cmd({
|
|||
UI.empty()
|
||||
UI.println(UI.logo())
|
||||
UI.empty()
|
||||
UI.println(UI.Style.TEXT_NORMAL_BOLD + "> ", message)
|
||||
const displayMessage = message.length > 300 ? message.slice(0, 300) + "..." : message
|
||||
UI.println(UI.Style.TEXT_NORMAL_BOLD + "> ", displayMessage)
|
||||
UI.empty()
|
||||
|
||||
const cfg = await Config.get()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue