Bus UI Assistant
AIThreadIsolation shows workspace isolation state.
Use it to show which thread owns which worktree, branch, or operator context, and whether the current state blocks submit or apply actions.
Public API
AIThreadIsolation(p AIThreadIsolationProps) gx.Node
When to use it
Use AIThreadIsolation when the assistant needs a visible thread
ownership snapshot for branch, worktree, owner, active, and conflict status.
Key props
ThreadID, Owner, Branch,
Worktree, Active, Conflict, and
Detail.
Example
Go API
import (
gx "github.com/busdk/bus-gx/pkg/gx"
assistantui "github.com/busdk/bus-ui/pkg/assistantui"
)
node := assistantui.AIThreadIsolation(assistantui.AIThreadIsolationProps{
ThreadID: "thread-1",
Branch: "feature/review",
Worktree: "/tmp/review",
Active: true,
})
html, err := gx.RenderHTML(node)
.gx source
In .gx source, author the visible component state as GX markup.
Keep the Go API block above for the package helper or render-boundary call.
package busuiexamples
import gx "github.com/busdk/bus-gx/pkg/gx"
func AIThreadIsolationExample() gx.Node {
return <section class="ai-thread-isolation">
<h2><Text value={"Isolated thread"}></Text></h2>
<p><Text value={"Thread data stays scoped to this workspace."}></Text></p>
</section>
}
Related
Return to Assistant or the Bus UI reference.