mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 22:10:23 +00:00
fix(app): dismiss toast notifications when questions or permissions a… (#16758)
This commit is contained in:
parent
0388ec6862
commit
3742e42fdf
1 changed files with 11 additions and 0 deletions
|
|
@ -424,6 +424,17 @@ export default function Layout(props: ParentProps) {
|
|||
return
|
||||
}
|
||||
|
||||
if (
|
||||
e.details?.type === "question.replied" ||
|
||||
e.details?.type === "question.rejected" ||
|
||||
e.details?.type === "permission.replied"
|
||||
) {
|
||||
const props = e.details.properties as { sessionID: string }
|
||||
const sessionKey = `${e.name}:${props.sessionID}`
|
||||
dismissSessionAlert(sessionKey)
|
||||
return
|
||||
}
|
||||
|
||||
if (e.details?.type !== "permission.asked" && e.details?.type !== "question.asked") return
|
||||
const title =
|
||||
e.details.type === "permission.asked"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue