Skip to content

office: a Devin session's desk shows its own mark and name, and done's hint says a day, as on the board - #24

Open
connorburgess wants to merge 1 commit into
spacesheep-dev:mainfrom
connorburgess:fix/office-harness-marks
Open

connorburgess wants to merge 1 commit into
spacesheep-dev:mainfrom
connorburgess:fix/office-harness-marks

Conversation

@connorburgess

Copy link
Copy Markdown
Contributor

What

@sessionpipe-gui/theme-office, packages/office/src/format.ts: the office's copy of the GUI's harnessMark catches up with the GUI's web/src/lib/format.ts, and the done hint says a day.

  • A Devin session's desk shows De and Devin in Devin's hue (20), as the board does. Before, it showed D, the raw id devin and a hue hashed from the name (354). Grok Build gets the GUI's Gb / Grok Build / 168 the same way.
  • An unknown harness whose name is one word gets its first two letters, as in the GUI (goose → Go, was G). Names with several parts still get their initials (qwen-code → Qc).
  • The Legend's hint for done said "Ended, or silent for six hours, or only known from backfill." It now says "silent for a day", the GUI's wording, which matches DONE_AFTER_MS = 24 * 3600_000 in packages/shared-types/api.ts.

The GUI also labels names from the ACP registry at runtime (MORE_LABELS / addHarnessLabels). The office has no such list, so that part is left out, and the comment on harnessMark says so. Nothing else changes: Worker.tsx, IsoCell.tsx and Room.tsx read only .glyph and .label, every known harness already had two letters, and no other package keeps a copy of harnessMark or the six-hours hint. README.md and DESIGN.md don't mention six hours.

Why

Devin is one of the harnesses sessionpipe hooks, and the GUI has shown its own mark since 0.4.0. In the office, a Devin desk was still labelled with the raw id. The six-hours hint went out of date when the GUI moved done to a day of silence.

Proof

packages/office had no tests. This adds test/format.test.mjs (node:test, no new dependency, the same node --test test/*.test.mjs script as plugin-ping-a-human) and a test script, so the root npm test runs it. It imports src/format.ts directly, which needs Node 22.18 or newer to strip the types. CI uses .nvmrc (22), so it qualifies, but on an older Node 22 or on Node 20 (which root engines still allows) this test fails to load the file.

The same test against origin/main's format.ts fails 3 of its 5 cases:

    not ok 1 - gives Devin and Grok Build the GUI's mark, name and hue
    not ok 3 - initials an unknown name as the GUI does: two letters of one word, the initials of several
not ok 1 - harnessMark
    not ok 1 - says done comes after a day of silence, as the GUI's DONE_AFTER_MS does
not ok 2 - STATE_HINT
# pass 2
# fail 3

On this branch:

> @sessionpipe-gui/theme-office@0.3.0 test
# pass 5
# fail 0

Checks run on Node v22.23.2, on this branch and on unmodified origin/main (d92e06a):

origin/main this branch
npm ci pass pass
npm run build pass pass
npm run typecheck pass pass
npm run lint pass, 3 warnings pass, the same 3 warnings (office.css:801, office.css:844, plugin-ping-a-human/src/index.ts:225)
npm test canvas: 43 failed canvas: 43 failed; office: 5 pass

The canvas Playwright failures have nothing to do with this change and fail the same way on origin/main: this machine lacks the Chromium headless shell (browserType.launch: Executable doesn't exist at ~/Library/Caches/ms-playwright/chromium_headless_shell-1248/...). The ping-a-human (12 pass) and color-themes checks pass on both.

No screenshot: this changes only two letters, a name and a hue on a desk, plus one hint sentence. Not run: the office in a live GUI, and Windows.

Checklist

  • Every commit is signed off (git commit -s): the DCO is the only paperwork.
  • npm run typecheck && npm run lint && npm run build && npm test pass, except canvas's Playwright tests, which fail the same way on origin/main (see above).
  • New source files start with // SPDX-License-Identifier: Apache-2.0; anything bundled from a third party is in THIRD_PARTY_NOTICES.md and NOTICE.
  • No token, real address, hostname or home path in code, fixtures or screenshots.
  • A line under Unreleased in CHANGELOG.md if a person would notice. A person would notice, so this needs one. I will add it in a follow-up commit once my open pull requests that edit CHANGELOG.md land, so they do not conflict there, as in my earlier pull requests. The line will be: "@sessionpipe-gui/theme-office: Devin and Grok Build desks show the GUI's mark and name, an unknown one-word harness gets two letters, and the done hint says a day."

…s hint says a day, as on the board

The office keeps a copy of the GUI's harnessMark. The GUI has since added
Devin (De, hue 20) and Grok Build (Gb, hue 168) and initials a one-word
unknown name with its first two letters (goose -> Go). The office copy
lacked all three, so a Devin desk showed "D", the raw id "devin" and a
hashed hue. The ACP registry labels the GUI adds at runtime stay out: the
office has no such list.

The done hint said "silent for six hours"; the GUI's hint and DONE_AFTER_MS
say a day.

A node:test file for src/format.ts pins both to the GUI's values.

Signed-off-by: Connor Burgess <connorburgesscodes@gmail.com>

This branch has not been deployed

No deployments
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