@@ -36,7 +36,6 @@ import { useToast } from "../../ui/toast"
3636import { useKV } from "../../context/kv"
3737import { useTextareaKeybindings } from "../textarea-keybindings"
3838import { DialogSkill } from "../dialog-skill"
39- import { CONSOLE_MANAGED_ICON , consoleManagedProviderLabel } from "@tui/util/provider-origin"
4039
4140export type PromptProps = {
4241 sessionID ?: string
@@ -96,15 +95,8 @@ export function Prompt(props: PromptProps) {
9695 const list = createMemo ( ( ) => props . placeholders ?. normal ?? [ ] )
9796 const shell = createMemo ( ( ) => props . placeholders ?. shell ?? [ ] )
9897 const [ auto , setAuto ] = createSignal < AutocompleteRef > ( )
99- const activeOrgName = createMemo ( ( ) => sync . data . console_state . activeOrgName )
100- const canSwitchOrgs = createMemo ( ( ) => sync . data . console_state . switchableOrgCount > 1 )
101- const currentProviderLabel = createMemo ( ( ) => {
102- const current = local . model . current ( )
103- const provider = local . model . parsed ( ) . provider
104- if ( ! current ) return provider
105- return consoleManagedProviderLabel ( sync . data . console_state . consoleManagedProviders , current . providerID , provider )
106- } )
107- const hasRightContent = createMemo ( ( ) => Boolean ( props . right || activeOrgName ( ) ) )
98+ const currentProviderLabel = createMemo ( ( ) => local . model . parsed ( ) . provider )
99+ const hasRightContent = createMemo ( ( ) => Boolean ( props . right ) )
108100
109101 function promptModelWarning ( ) {
110102 toast . show ( {
@@ -1120,17 +1112,6 @@ export function Prompt(props: PromptProps) {
11201112 < Show when = { hasRightContent ( ) } >
11211113 < box flexDirection = "row" gap = { 1 } alignItems = "center" >
11221114 { props . right }
1123- < Show when = { activeOrgName ( ) } >
1124- < text
1125- fg = { theme . textMuted }
1126- onMouseUp = { ( ) => {
1127- if ( ! canSwitchOrgs ( ) ) return
1128- command . trigger ( "console.org.switch" )
1129- } }
1130- >
1131- { `${ CONSOLE_MANAGED_ICON } ${ activeOrgName ( ) } ` }
1132- </ text >
1133- </ Show >
11341115 </ box >
11351116 </ Show >
11361117 </ box >
@@ -1162,7 +1143,7 @@ export function Prompt(props: PromptProps) {
11621143 }
11631144 />
11641145 </ box >
1165- < box flexDirection = "row" justifyContent = "space-between" >
1146+ < box width = "100%" flexDirection = "row" justifyContent = "space-between" >
11661147 < Show when = { status ( ) . type !== "idle" } fallback = { props . hint ?? < text /> } >
11671148 < box
11681149 flexDirection = "row"
0 commit comments