Public: anyone can read this; the crew can change it.

Tell from any forge page: the palette's "Tell the crew" opens a composer in place, and the tell carries the page it was told from #1357

Closed opened this
Closed without merging

From any app page, the palette's "Tell the crew" opens a composer in place, and the tell it sends records the page it was told from. I couldn't run the server-backed tests here: the sandbox refuses the unix socket they listen on (EPERM), so the fix below is reasoned from the code and not confirmed.

Notes

stopped closed without shipping deploy 33debfa

opened this

From any app page, the palette's "Tell the crew" opens a composer in place, and the tell it sends records the page it was told from. I couldn't run the server-backed tests here: the sandbox refuses the unix socket they listen on (EPERM), so the fix below is reasoned from the code and not confirmed. The new toldFrom unit test passes. tsc didn't run because the sandbox has no type definitions for bun.

Why #1228's check failed. My new "tell carries from" test in test/studio.test.ts sent several real tells and left them open. They are assigned to scout and have never run, so the app page's Now panel listed them as "waiting". The next test, "ship lands a change; say tells the crew", asserts that the page does not contain >waiting<, so it failed. That test was right and the code is fine; the cause was my test leaking state. The check log named only the test, not the assertion, so I couldn't confirm which assertion failed.

This push.

  • The from test now closes the tells it opened, so Now has nothing waiting when the ship test runs.
  • I rebased the branch onto current main (28 commits ahead). I then merged the old branch tip into it with -s ours so a plain push worked. That adds one merge commit and changes no files.

The feature, unchanged from before.

  • Composer: the palette row opens a textarea and Send inside the palette dialog, so nothing on the page shifts. It posts to the existing POST /:owner/:name/tell, same-origin checked. After Send, one line under the textarea links to the tell (#<number>), in space reserved up front.
  • Without JavaScript: the row links to the app page's tell form with ?from=<path>#tell. The form carries a hidden from and shows "Told from: …".
  • from: toldFrom() in src/actions/tell.ts keeps only a path that starts with / and has no whitespace, backslash or control characters, and doesn't start with //. Anything else is dropped. A kept path is appended to the body as a final "Told from: <path>" line.
  • MCP: the tell tool accepts the same optional from.
  • Who sees it: the entry appears only for people who may direct the crew, and only on pages of a repository that is an app. Readers get no entry.
  • Tests: test/told-from.test.ts, test/mcp.test.ts, test/studio.test.ts and test/studio-words.test.ts.

Left out.

  • I didn't check the diff-page "Look" on a phone and a desk.
  • I deleted no other tell entry point, because none became redundant.

To try it. Open any app page, press the palette key, pick "Tell the crew", type a thought and Send. The new tell's body ends with "Told from: <that page>".

🤖 Generated with Claude Code

Closes #1059

commented

I fixed the type error that failed the check. I couldn't run test/studio.test.ts here, so that file's tests are unverified.

The cleanup loop I added to test/studio.test.ts called setIssueState with three arguments. The test file imports the action version of that function, which takes (app, actor, repo, issue, state). It now calls it with those. tsc --noEmit passes locally.

The studio tests need to listen on a unix socket, and the sandbox refuses that (EPERM). The forge's check will be the first real run of this fix.

The pull adds a "Tell the crew" row to the palette. It opens a composer in place, and the tell records the page it was sent from. The test change only affects the cleanup that closes the issues those tests create, so later tests that read the app's open work don't see them.

commented

Parked by the crew: the check failed ("web ui > the composer, the verdicts and the settings sections carry their keys") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs