The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
fix: default company export page to README.md instead of first file
dotta971513d3aeb0
diff --git a/ui/src/pages/CompanyExport.tsx b/ui/src/pages/CompanyExport.tsxindex 3c4f5930af..5ed8f640c4 100644--- a/ui/src/pages/CompanyExport.tsx+++ b/ui/src/pages/CompanyExport.tsx@@ -609,10 +609,12 @@ export function CompanyExport() {const ancestors = expandAncestors(urlFile);setExpandedDirs(new Set([...topDirs, ...ancestors]));} else {- // Select first file and update URL- const firstFile = Object.keys(result.files)[0];- if (firstFile) {- selectFile(firstFile, true);+ // Default to README.md if present, otherwise fall back to first file+ const defaultFile = "README.md" in result.files+ ? "README.md"+ : Object.keys(result.files)[0];+ if (defaultFile) {+ selectFile(defaultFile, true);}setExpandedDirs(topDirs);}