diff options
| author | Adam <[email protected]> | 2025-12-27 20:40:25 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-27 20:40:25 -0600 |
| commit | 1b5bf32ce560f44dd558f3951121c3f4b0560e85 (patch) | |
| tree | 14a0f32dacd9deaf6bdd57bf5ccf03d6a9b8747e /packages/ui/src/components | |
| parent | 2e972b3fdc4b7f3ccb2224f693391a8f11572c3c (diff) | |
| download | opencode-1b5bf32ce560f44dd558f3951121c3f4b0560e85.tar.gz opencode-1b5bf32ce560f44dd558f3951121c3f4b0560e85.zip | |
chore: permissions ux
Diffstat (limited to 'packages/ui/src/components')
| -rw-r--r-- | packages/ui/src/components/session-turn.tsx | 6 | ||||
| -rw-r--r-- | packages/ui/src/components/toast.tsx | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/packages/ui/src/components/session-turn.tsx b/packages/ui/src/components/session-turn.tsx index ce4845a71..8cb426387 100644 --- a/packages/ui/src/components/session-turn.tsx +++ b/packages/ui/src/components/session-turn.tsx @@ -329,6 +329,12 @@ export function SessionTurn( }) createEffect(() => { + if (permissionParts().length > 0) { + autoScroll.forceScrollToBottom() + } + }) + + createEffect(() => { if (working() || !isLastUserMessage()) return const diffs = message()?.summary?.diffs diff --git a/packages/ui/src/components/toast.tsx b/packages/ui/src/components/toast.tsx index 7e90e9f2f..f34c46d42 100644 --- a/packages/ui/src/components/toast.tsx +++ b/packages/ui/src/components/toast.tsx @@ -92,7 +92,6 @@ export type ToastVariant = "default" | "success" | "error" | "loading" export interface ToastAction { label: string onClick: "dismiss" | (() => void) - dismissAfter?: boolean } export interface ToastOptions { @@ -132,10 +131,8 @@ export function showToast(options: ToastOptions | string) { onClick={() => { if (typeof action.onClick === "function") { action.onClick() - if (action.dismissAfter) toaster.dismiss(props.toastId) - } else { - toaster.dismiss(props.toastId) } + toaster.dismiss(props.toastId) }} > {action.label} |
