Fix ⌘F focus, hung-turn Stop, narrow tabs and other QA findings
This commit is contained in:
@@ -86,13 +86,17 @@ func (m *Manager) settleFacts(ctx context.Context, dirty map[string]bool) error
|
||||
func (m *Manager) settleTaskFacts(ctx context.Context, t api.Task, p api.Project) error {
|
||||
m.factsRun.Lock()
|
||||
defer m.factsRun.Unlock()
|
||||
if t.WorktreePath != "" {
|
||||
gone := func() bool {
|
||||
_, err := os.Stat(t.WorktreePath)
|
||||
if errors.Is(err, fs.ErrNotExist) {
|
||||
return nil
|
||||
}
|
||||
return t.WorktreePath != "" && errors.Is(err, fs.ErrNotExist)
|
||||
}
|
||||
if gone() {
|
||||
return nil
|
||||
}
|
||||
g, err := m.gitFacts(ctx, t, p)
|
||||
if err != nil && gone() {
|
||||
return nil
|
||||
}
|
||||
if err != nil {
|
||||
slog.Error("compute merge facts", "task", t.Id, "err", err)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user