mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-22 04:13:26 +00:00
fix(tui): honest reconnect overlay copy without a managed service (#43561)
This commit is contained in:
parent
f43474043a
commit
20ff543ff2
2 changed files with 8 additions and 4 deletions
|
|
@ -1376,7 +1376,7 @@ function App(props: { pair?: DialogPairCredentials }) {
|
|||
<StartupLoading ready={plugins.ready} />
|
||||
</Show>
|
||||
<Show when={showReconnecting()}>
|
||||
<Reconnecting />
|
||||
<Reconnecting managed={client.restart !== undefined} />
|
||||
</Show>
|
||||
<MigrationOverlay />
|
||||
<Toast />
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { RGBA } from "@opentui/core"
|
|||
import { useTheme } from "../context/theme"
|
||||
import { Spinner } from "./spinner"
|
||||
|
||||
export function Reconnecting() {
|
||||
export function Reconnecting(props: { managed?: boolean }) {
|
||||
const theme = useTheme("elevated")
|
||||
|
||||
return (
|
||||
|
|
@ -28,8 +28,12 @@ export function Reconnecting() {
|
|||
paddingRight={2}
|
||||
gap={1}
|
||||
>
|
||||
<Spinner color={theme.text.default}>Restarting service...</Spinner>
|
||||
<text fg={theme.text.subdued}>Your session will resume automatically.</text>
|
||||
<Spinner color={theme.text.default}>{props.managed ? "Restarting service..." : "Connection lost..."}</Spinner>
|
||||
<text fg={theme.text.subdued}>
|
||||
{props.managed
|
||||
? "Your session will resume automatically."
|
||||
: "Reconnecting to the server automatically."}
|
||||
</text>
|
||||
</box>
|
||||
</box>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue