Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmd/codeaf/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ func runApp(args []string) error {
// ONE SUPERVISOR FOR EVERY CONVERSATION THE APP BUILDS (appservices.go).
services := openAppServices()
appServiceDoor.Store(services)
appClientToolsBackend.Store(backend)
backend.attachServices(services)
// And the press a job's manager makes Merge and Mark ready through, the
// job page's own (factory_manager_press.go).
Expand Down Expand Up @@ -586,6 +587,7 @@ func appConnOf(client *remote.Client, release func(), assembled bool) *appConn {

// appBackend is the [appwire.Engine] over this process's conversations.
type appBackend struct {
clientTools appClientTools
libraryWatch sync.Once
libraryInboxMu sync.Mutex
pluginPauses map[string]appPluginPause
Expand Down Expand Up @@ -2052,6 +2054,7 @@ func (b *appBackend) hold(a *appAgent, conn *appConn, workspace string) appwire.
a.crewHeld = a.crewHeld || crewHeld
view = a.view
})
b.holdClientTools(a, live)
startTitles()
b.flushSync(a)
b.locked(func() { view = a.view })
Expand Down Expand Up @@ -4671,6 +4674,8 @@ func (b *appBackend) Close() error {
if b.leaving != nil {
b.leaving()
}
b.clientTools.disconnect()
appClientToolsBackend.CompareAndSwap(b, nil)
already := false
var waitClosed chan struct{}
var crews *appCrewRun
Expand Down
Loading
Loading