feat(coder): add OpenAgents title to splash screen frame

a24cc461b193 · AtlantisPleb · · parent 60984224d157

feat(coder): add OpenAgents title to splash screen frame

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

pushed
by user · WAL seq 165 · 2026-08-25T20:18:04.390508Z

Changed files

  • modified packages/openagents-cli/src/coder-ui.ts
  • modified packages/openagents-cli/test/coder-ui.test.ts

Diff

2 files changed, +11 -1

packages/openagents-cli/src/coder-ui.ts modified +10 -1

@@ -347,8 +347,17 @@ function splashLines(width: number, height: number): ReadonlyArray<string> {

347 347
348 348
  /** Wrap inner rows in the frame and center the block in the viewport. */
349 349
  const framed = (inner: ReadonlyArray<string>, innerWidth: number): ReadonlyArray<string> => {
350
    const title = " OpenAgents ";
351
    let topBorder: string;
352
    if (innerWidth >= title.length + 2) {
353
      const leftDashes = Math.max(0, Math.floor((innerWidth - title.length) / 2));
354
      const rightDashes = Math.max(0, innerWidth - title.length - leftDashes);
355
      topBorder = `${DIM}┌${"─".repeat(leftDashes)}${RESET}${title}${DIM}${"─".repeat(rightDashes)}┐${RESET}`;
356
    } else {
357
      topBorder = `${DIM}┌${"─".repeat(innerWidth)}┐${RESET}`;
358
    }
350 359
    const rows = [
351
      `${DIM}┌${"─".repeat(innerWidth)}┐${RESET}`,
360
      topBorder,
352 361
      ...inner,
353 362
      `${DIM}└${"─".repeat(innerWidth)}┘${RESET}`,
354 363
    ];
packages/openagents-cli/test/coder-ui.test.ts modified +1

@@ -985,6 +985,7 @@ describe("the splash before the first message", () => {

985 985
    // says what to do next without repeating what the status line says.
986 986
    expect(joined).toContain("██████╗");
987 987
    expect(joined).toContain("┌");
988
    expect(joined).toContain("OpenAgents");
988 989
    expect(joined).toContain("└");
989 990
    expect(joined).toMatch(/[01]{20}/);
990 991
    expect(joined).toContain("type a prompt below to begin");

This page updates live while a promote is in flight · changelog