mirror of
https://github.com/NeuralNomadsAI/CodeNomad.git
synced 2026-07-09 16:00:52 +00:00
fix(ui): keep interruption center closed
Remove the automatic opening behavior for the permission/question center when pending interruptions arrive. Users can still see the pending-request banner and open the center manually, while the existing interruption ordering behavior remains intact. Validated with npm run typecheck --workspace @codenomad/ui.
This commit is contained in:
parent
9e1e16feb2
commit
de2caa8291
1 changed files with 0 additions and 12 deletions
|
|
@ -349,18 +349,6 @@ const InstanceShell2: Component<InstanceShellProps> = (props) => {
|
|||
return pendingRequestCount() > 0
|
||||
})
|
||||
|
||||
let previousPendingRequestCount = 0
|
||||
let previousIsActiveInstance = props.isActiveInstance !== false
|
||||
createEffect(() => {
|
||||
const count = pendingRequestCount()
|
||||
const isActiveInstance = props.isActiveInstance !== false
|
||||
if (isActiveInstance && count > 0 && (previousPendingRequestCount === 0 || !previousIsActiveInstance)) {
|
||||
setPermissionModalOpen(true)
|
||||
}
|
||||
previousPendingRequestCount = count
|
||||
previousIsActiveInstance = isActiveInstance
|
||||
})
|
||||
|
||||
const activePromptInputApi = createMemo(() => {
|
||||
const sessionId = activeSessionIdForInstance()
|
||||
if (!sessionId || sessionId === "info") return null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue