Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Require the skill assets too before writing the Office overlay

Fei241129cb31bf59d6
diff --git a/app/src/office-patch.mjs b/app/src/office-patch.mjs
index da443d39..149cb8cc 100644
--- a/app/src/office-patch.mjs
+++ b/app/src/office-patch.mjs
@@ -19,7 +19,10 @@ export const OFFICE_PATCH_NAME = 'office.patch.yml'
export function officeRuntime(runtimeDir) {
const source = join(runtimeDir, 'primary-runtime')
const node = join(source, 'dependencies', 'node', 'bin', process.platform === 'win32' ? 'node.exe' : 'node')
- if (!existsSync(join(source, 'runtime.json')) || !existsSync(node)) return undefined
+ // The skill plugin reads its SKILL.md files at boot: an incomplete payload must fall back
+ // to no overlay rather than stop the Host from starting.
+ if (!existsSync(join(source, 'runtime.json')) || !existsSync(node)
+ || !existsSync(join(runtimeDir, 'office-skills', 'office', 'SKILL.md'))) return undefined
return { source, node }
}
diff --git a/app/test/office-patch.test.mjs b/app/test/office-patch.test.mjs
index 1afc4f11..1667654f 100644
--- a/app/test/office-patch.test.mjs
+++ b/app/test/office-patch.test.mjs
@@ -15,6 +15,8 @@ function makePayload() {
mkdirSync(dirname(node), { recursive: true })
writeFileSync(node, '')
writeFileSync(join(source, 'runtime.json'), '{}')
+ mkdirSync(join(runtimeDir, 'office-skills', 'office'), { recursive: true })
+ writeFileSync(join(runtimeDir, 'office-skills', 'office', 'SKILL.md'), '---\ndescription: office\n---\n')
}
// A stand-in profile under a throwaway DSH_HOME.
function profile() {