Skip to content

Commit 5024171

Browse files
authored
Merge branch 'main' into stevenmasley/assume_everyone
2 parents da39c41 + 8a70b8d commit 5024171

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

provisioner/terraform/modules.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ func GetModulesArchive(root fs.FS) ([]byte, error) {
103103
if !fileMode.IsRegular() && !fileMode.IsDir() {
104104
return nil
105105
}
106+
107+
// .git directories are not needed in the archive and only cause
108+
// hash differences for identical modules.
109+
if fileMode.IsDir() && d.Name() == ".git" {
110+
return fs.SkipDir
111+
}
112+
106113
fileInfo, err := d.Info()
107114
if err != nil {
108115
return xerrors.Errorf("failed to archive module file %q: %w", filePath, err)

site/src/pages/TaskPage/TaskApps.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ export const TaskApps: FC<TaskAppsProps> = ({ task }) => {
3333
.filter((a) => !!a && a.slug !== AI_APP_CHAT_SLUG);
3434

3535
const [activeAppId, setActiveAppId] = useState<string>(() => {
36-
const appId = task.workspace.latest_app_status?.app_id;
36+
const appId = apps[0]?.id;
3737
if (!appId) {
38-
throw new Error("No active app found in task");
38+
throw new Error("No apps found in task");
3939
}
4040
return appId;
4141
});

0 commit comments

Comments
 (0)