Repository navigation
feat(apps): LibreOffice as a shipped computer app, opening Office files by type through its server (FD-5705) - #655
Closed
earakely-scale wants to merge 9 commits into
Conversation
…es by type through its server (FD-5705) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the office agent task Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pens no window while a document is open Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ounts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
earakely-scale
marked this pull request as ready for review
November 12, 2026 23:34
…d or reset takes; the office check follows the animation to the list Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Moved to scaleapi/synthetic-pipelines#1905: the LibreOffice app and its office example now live there as one agent-env bundle, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A new shipped bundle,
apps, with its first computer app,libreoffice. It's acomputer_appenv with Writer, Impress and Calc for an X11 Linux desktop on amd64 and arm64. There's also a new example,office: a computer env ofubuntu-24.04,referenceandlibreoffice, with a probe task and an agent task. In the agent task, Claude Code writes a .docx memo and a two-slide .pptx whose second slide has an entrance animation, and a verifier reads both files inside the computer.How
agentenv.xcdinto/etc/libreoffice/registry, a configuration layer under the user's profile. It turns off the tip of the day, the first-run and new-version bars, the "Get involved" and donation bars, the "Keep current format?" question on save, lock files beside documents, and document recovery after the app is stopped. The layer is an.xcdbecause.xcufiles in that folder aren't read. Locks are turned off byUseLocking; the two file-locking keys alone didn't stop the.~lock.*#files.soffice --nologo, the Start Center), ready once alibreofficewindow shows, and the server stops it by process group. So every launcher on the computer goes through the server: the install step copies each LibreOffice desktop entry into/usr/local/share/applications, which takes precedence, withExecpointed atopen.py.open.pynever runssofficeitself. It leaves the files it opens in a request file beside the app's server and asks the server to launch the app. The server's launch hands the files to the running copy. That launch takes the data plane's turn, the same one a load or a reset holds from stop to relaunch, so neither can stop LibreOffice between the running check and the handoff. With no copy running, the launch starts one, andopen.pylaunches again once it's ready. A copy started outside the server would survive a load or a reset.exo-open, or an agent double-clicking a file. A .docx, .odt or .rtf goes to Writer, a .pptx or .odp to Impress, and an .xlsx, .ods or .csv to Calc. CSVs are opened comma-separated as UTF-8 with no Text Import dialog (--infilter=CSV:44,34,76,1)._launch_running). It hands over the files waiting in requests, oldest first, or with none waiting, runs a bare launch, as LibreOffice's own launchers do. If the server started a second copy instead, it would hand off to the first and exit, leaving the server tracking a process that's gone. With a document open, LibreOffice opens no new window for it, not even with--startcenterorprivate:factory/startcenter. I checked that against 24.2.7.~/.config/libreoffice. The image has none, so each deploy and each data reset starts with a clean profile under the same defaults.SKILL.mdcovers opening each app, saving in Office formats, Writer, Impress (including entrance animations) and Calc, and what to do when something gets in the way.Testing
tst/unit/env/envs/test_libreoffice_app.pyandtst/unit/bundle/shipped_bundles_test.py: 28 passed locally, on amd64 and on arm64. They cover the declaration, the install step (desktop entries rewritten, registry layer versioned, MIME cache updated),open.py's invocations and its launch through the server.tst/integration/computer/libreoffice_app_test.py, on an amd64 host and an arm64 host, both with local Docker:readywith LibreOffice, and the probe passes atfull.exo-openeach open in the right app, in onesoffice.bin, with no dialog and no lock file.computer_*saves as .docx with no question.tst/integration/computer/office_example_test.py: the example's check runs against a deployed computer. With no files it fails all three results, naming the missing file. A memo and a deck converted headless by LibreOffice pass the memo and slides checks. They fail the animation check when the deck has no animation, and also when only the second slide's title enters. The deck whose list of three enters, converted from a flat ODP, passes everything. The check parses each slide's XML and requires an entrance effect whose target is the shape holding the list of exactly three items. The agent task's test runs only with a model endpoint, as the desktop example's does.Results on b279ef8, this branch's base, with its diff, on an amd64 host and an arm64 host, each composing and deploying its own arch on local Docker:
libreoffice_app_test.pygate 3libreoffice_app_test.pydeployedoffice_example_test.pycheckoffice_example_test.pyagentCI ran the same tests on its amd64 runners: both
libreoffice_app_test.pytests inintegration-local-slow (7/12)and the office check in(6/12), all passed.The verifier also ran against LibreOffice 24.2.7 output in a plain Ubuntu 24.04 container: missing files fail all three results, a deck with no animation fails only
animation, and the animated deck passes all three.Docs
The docs site should cover the
appsbundle andlibreoffice: listing it in a computer env'sapps, what it opens by type, the unattended defaults, and that the server starts every copy. It should also cover theofficeexample.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no new actionable issue was found.Summary
Adds LibreOffice as a shipped computer app and an
officeexample.Diagram
sequenceDiagram participant Desktop as Desktop launcher participant Opener as open.py participant Server as App server participant Office as LibreOffice Desktop->>Opener: Open files Opener->>Server: Queue files and request launch Server->>Office: Start tracked copy if needed Opener->>Server: Request launch again once ready Server->>Office: Hand queued files to running copyReviews (6) · Last reviewed commit: "refactor(apps): open.py's ready poll int..." · Reviewed by Greptile