Skip to content

Commit a4e3451

Browse files
committed
tweak: make message border match color of agent it was sent to
1 parent 53a7c28 commit a4e3451

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/opencode/src/cli/cmd/tui/routes/session

‎packages/opencode/src/cli/cmd/tui/routes/session/index.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,13 +957,14 @@ function UserMessage(props: {
957957
pending?: string
958958
}){
959959
constctx=use()
960+
constlocal=useLocal()
960961
consttext=createMemo(()=>props.parts.flatMap((x)=>(x.type==="text"&&!x.synthetic ? [x] : []))[0])
961962
constfiles=createMemo(()=>props.parts.flatMap((x)=>(x.type==="file" ? [x] : [])))
962963
constsync=useSync()
963964
const{ theme }=useTheme()
964965
const[hover,setHover]=createSignal(false)
965966
constqueued=createMemo(()=>props.pending&&props.message.id>props.pending)
966-
constcolor=createMemo(()=>(queued() ? theme.accent : theme.secondary))
967+
constcolor=createMemo(()=>(queued() ? theme.accent : local.agent.color(props.message.agent)))
967968

968969
constcompaction=createMemo(()=>props.parts.find((x)=>x.type==="compaction"))
969970

0 commit comments

Comments
 (0)