Skip to content

HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.

fix(skills): officecli's resident flush silently ate a whole spreadsheet

richard-epsilla385738ad0b2f
diff --git a/Dockerfile b/Dockerfile
index 177d66d2..7e2652d1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -101,6 +101,14 @@ ARG WITH_BUILTIN_SKILLS=1
ARG HR_SKILLS_REPO=https://github.com/HarnessRouter/skills.git
ARG HR_SKILLS_REF=main
ENV HR_BUILTIN_SKILLS_DIR=/opt/harnessrouter/skills
+# officecli keeps an edited document open in a resident process and flushes it to disk some seconds
+# after that process goes idle. A task that writes a document and then ENDS races that timer: the
+# last file it touched is collected before the flush, and the user downloads a workbook whose
+# content silently is not there — `validate` still passes, because the in-memory document is fine.
+# Observed exactly that way: a spreadsheet whose every cell went into a sheet the saved file did
+# not contain. Flushing on every command costs some speed and removes the race entirely, which is
+# the right trade for a document a person is going to open.
+ENV OFFICECLI_RESIDENT_FLUSH=each
COPY docker/install-skills.sh /tmp/install-skills.sh
RUN chmod +x /tmp/install-skills.sh \
&& WITH_BUILTIN_SKILLS="$WITH_BUILTIN_SKILLS" HR_SKILLS_REPO="$HR_SKILLS_REPO" \