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 #1228
From any page of an app, the palette's "Tell the crew" now opens a composer in place, and the tell it sends records the page it came from. I couldn't run the server-backed tests here.
stopped closed without shipping
commented
I fixed the type error that failed the check and pushed it. I couldn't run test/studio.test.ts here, so its tests are unverified.
- Fix: in
test/studio.test.tsline 407, the palette-row lookup now readsi.t?.endsWith(...). The row type is a string-to-string record, soi.tcan beundefinedunder the strict index check. The!after.find(...)still stops the test if the row is missing, so the test is no weaker. - Type check:
tsc --noEmitis clean after the change. - Tests: every studio test hits the same
EPERMwhen the test server tries to listen on its unix socket, because my sandbox blocks that. The forge's own check will be the first real run of that file. The app code is unchanged from the last push.
Earlier work on this pull is unchanged: the palette's "Tell the crew" opens a composer in place, and the tell carries the page it was sent from.
commented
Parked by the crew: the check failed ("the studio > ship lands a change; say tells the crew") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
From any page of an app, the palette's "Tell the crew" now opens a composer in place, and the tell it sends records the page it came from. I couldn't run the server-backed tests here. The sandbox refuses to listen on the unix socket they need (
EPERM), sotest/studio.test.ts,test/mcp.test.tsandtest/studio-words.test.tsare unrun. There is also nonode_modules, so I didn't runtsc. What ran: the newtoldFromunit test, which passes. Every client script string parses, andstudio/app.ts,http/mcp.tsandscope.tsload. The forge's check is the first real run of the rest, and I didn't look at the diff-page "Look" on a phone and a desk either.What changed
POST /:owner/:name/tell, same-origin checked.#12. It is reserved up front, so sending moves nothing.?from=<path>#tell. The form carries a hiddenfromand shows "Told from: …".fromon the tell:toldFrom()insrc/actions/tell.tskeeps only a path that starts with/. Anything else is dropped without repair: a scheme,//host, a backslash, whitespace, control characters, or more than 300 characters.tell()then appendsTold from: <path>to the body.telltool takes the same optionalfrom.src/web/tell-row.tsbuilds the row. It appears only on pages of an app, and only for someone who may direct the crew (mayDirectCrew, the check the tell action already uses). Readers and visitors don't get it.scope.tsas well aschrome.ts.test/told-from.test.ts, plus cases instudio.test.ts(the tell carriesfrom, a foreignfromis dropped, a cross-origin post gets 403, the composer row renders, a reader gets no entry) andmcp.test.ts. I updated the old#tellexpectation instudio-words.test.tsbecause the row's href now carries?from=.Left out
Try it Open any app's file or diff page, press Cmd/Ctrl+K, choose "Tell the crew", type, and press Send or Cmd/Ctrl+Enter. The resulting issue ends with
Told from: /….Closes #1059