Skip to content

fix(api): collect Office macro-enabled and template outputs - #61

Open
mikeboe wants to merge 2 commits into
innfactory/release-v1.10.11from
fix/office-macro-output-extensions
Open

mikeboe wants to merge 2 commits into
innfactory/release-v1.10.11from
fix/office-macro-output-extensions

Conversation

@mikeboe

@mikeboe mikeboe commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Generated .xlsm files (and other Office macro and template formats) never reached LibreChat: no attachment in the chat, nothing in Files. There are two extension allowlists, and both lacked these formats:

  1. api/src/job.ts SUPPORTED_EXTENSIONS (sandbox output collector): the file was skipped silently.
  2. packages/code/src/protocol.ts BRIDGE_ARTIFACT_EXTENSIONS (egress gateway): once (1) was fixed, the upload was rejected with 403 scope_mismatch.

Seen on companyGPT innfactoryai on 2026-11-03 (a VBA macro added to an .xlsm).

Change

  • Both allowlists and MIME maps now include .docm .dotx .dotm .xlsm .xlsb .xltx .xltm .pptm .potx .potm .ppsx .ppsm .odg
  • Exported isSupportedOutputFilename, with tests (api job-helpers 54/54, packages/code protocol 25/25)
  • tsc --noEmit (api): no new errors

Builds

  • v1.10.11-inf.1: sandbox list only (not enough on its own)
  • v1.10.11-inf.2: both lists. Manual test on innfactoryai (sandbox-runner + egress-gateway), then a companyGPT PR for codeinterpreter_image_tag.

🤖 Generated with Claude Code

mikeboe and others added 2 commits November 3, 2026 15:36
The output allowlist (SUPPORTED_EXTENSIONS) had .xlsx/.docx/.pptx but no
.xlsm/.docm/.pptm or the template formats, so a generated .xlsm was
silently dropped and never reached LibreChat (companyGPT, innfactoryai,
2026-11-03). Add .docm .dotx .dotm .xlsm .xlsb .xltx .xltm .pptm .potx
.potm .ppsx .ppsm .odg to the allowlist and the MIME map.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The egress gateway has its own artifact allowlist
(BRIDGE_ARTIFACT_EXTENSIONS); with only the sandbox list extended, a
generated .xlsm was collected but its upload was rejected with 403
scope_mismatch. Add the same formats and media types there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant