Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
POC: drop the teammates goal's leadName fixture field
short() is the only reader. The screen name is the string that comparison already used.

Co-authored-by: Jake Hoffner <jhoffner@users.noreply.github.com>
  • Loading branch information
cursoragent and jhoffner committed Oct 29, 2026
commit 11031c481f283470643e415dbd77db03fd15a778
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"port": 4620,
"lead": "teammates.chief-of-staff",
"leadName": "Chief of Staff",
"researcher": "teammates.researcher",
"ask": "Ask researcher for our launch date, and help me outline the post.",
"second": "Make section 2 about pricing.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ import { launchChromium } from "../../lib/playwright.mts";
interface Fixture {
port: number;
lead: string;
/** The name lead's `WORKER.md` declares, which the screen shows. */
leadName: string;
researcher: string;
ask: string;
second: string;
Expand Down Expand Up @@ -257,8 +255,7 @@ async function open(page: Page, worker: string): Promise<void> {

const userAt = (entries: Drawn[], text: string) => entries.findIndex((e) => e.kind === "user" && e.text.includes(text));
const lastUserAt = (entries: Drawn[], text: string) => entries.map((e) => e.kind === "user" && e.text.includes(text)).lastIndexOf(true);
/** The name the screen shows for a worker: its declared name, else the last part of its id. */
const short = (id: string) => (id === fixture.lead ? fixture.leadName : id.replace(/^teammates\./, ""));
const short = (id: string) => (id === fixture.lead ? "Chief of Staff" : id.replace(/^teammates\./, ""));

/** Say `text` to lead and wait until lead has answered it and finished the turn; false when it didn't in time. */
async function turnWith(page: Page, lead: string, text: string): Promise<boolean> {
Expand Down