Skip to content

factory: an organization workstream made with no pages starts with an Overview - #2657

Merged
santoshkumarradha merged 2 commits into
work/teamsfrom
w12/film-followups
Nov 16, 2026
Merged

santoshkumarradha merged 2 commits into
work/teamsfrom
w12/film-followups

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

What

createWorkstream (internal/factory/serve/workstreams.go) now adds the default Overview page when a create request carries no pages. The page matches what the desk sends in lib/orgWire.ts withOverview: title Overview, kind overview, empty body_md. cleanWorkstream gives it a pg_ id and stamps it as written by the creator.

A create that carries its own pages keeps exactly those pages.

Why

The desk sends an Overview on every create. Any other client got a workstream with no pages, which nobody could write in.

Proof

  • New TestOrgWorkstreamMadeWithNoPagesStartsWithAnOverview: a bare create answers one Overview and keeps it on read; a create with pages keeps its own.
  • TestOrgPagesHaveTheirOwnRevs updated: the Overview stays after deleting the other page.
  • Manual: new section in internal/manual/chat/organization-workstream-agent.md.
  • Change entry in docs/changes/unreleased/.
  • make pr-ready BASE=d274ba1d5 passes.

🤖 Generated with Claude Code

santoshkumarradha and others added 2 commits November 16, 2026 00:14
… Overview

createWorkstream kept whatever pages the request carried, so any client
other than the desk made a workstream nobody could write in. The server now
adds the desk's own Overview page (title "Overview", kind overview, empty)
when the create carries no pages.

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
@santoshkumarradha
santoshkumarradha merged commit f9aeb9f into work/teams Nov 16, 2026
1 check passed
@santoshkumarradha
santoshkumarradha deleted the w12/film-followups branch November 16, 2026 05:39
ZeroPoint95 pushed a commit that referenced this pull request Nov 24, 2026
… Overview (#2657)

* factory: an organization workstream made with no pages starts with an Overview

createWorkstream kept whatever pages the request carried, so any client
other than the desk made a workstream nobody could write in. The server now
adds the desk's own Overview page (title "Overview", kind overview, empty)
when the create carries no pages.

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>

* changes: name #2657 in its entry

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>

---------

Co-authored-by: CodeAF <[email protected]>
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