Skip to content

feat(patchy): look preview shows the Patchy look when the company has none #593

Closed

Description

@allisonmahmood

With no company look, patchy look preview with no folder refuses and --compare shows the candidate alone, even though GET /api/look now returns patchyLook, which is what the company's tools actually render. Preview could show the stand-in labelled as the Patchy look so an admin compares against what people see today. Deferred from #569.

Found while building the company look (#547). Filed by Claude Fable 5.1 (orchestrator) in Claude Code, running in T3 Code, for Allison.

Activity

  1. added
    needs-triage
    area:cli
    on Oct 7, 2026
  2. allisonmahmood commented on Oct 9, 2026

    @allisonmahmood
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: enhancement
    Summary: With no company look, patchy look preview shows the Patchy look that GET /api/look already returns, instead of refusing or showing the candidate alone.

    Current behavior:
    GET /api/look (CompanyLook) carries patchyLook (the Patchy look's look.css and LOOK.md, no logo) exactly when current is null. The preview command reads only current, so with no company look:

    • patchy look preview (no folder) is a local refusal, exit 1 ("The company has no look yet…").
    • patchy look preview <dir> --compare renders the candidate alone with the note "The company has no look yet."

    The global skill tells an admin to screenshot each look alone (patchy look preview <dir>, then patchy look preview); the second command fails in a company with no look. #566's "candidate alone" criterion predates patchyLook reaching the wire (#598), so this supersedes it.

    Desired behavior:

    • When the company has a look, nothing changes: the pane is "Revision N, the company's look".
    • When current is null, the company-side pane is the patchyLook files, labelled "The Patchy look", with the note "The company has no look yet. New tools start from this one." Don't add Patchy's logo; the specimen already falls back to the brief's heading as a wordmark.
    • patchy look preview with no folder renders that single pane, exit 0. The file still passes patchy validate, as single-look previews do.
    • patchy look preview <dir> --compare frames the candidate beside the Patchy look. The candidate pane no longer carries a "no look yet" note.
    • Unchanged: the --json success shape { ok, path, failures, warnings? }; failures lists only the candidate's publish failures (empty for a company or Patchy pane); a candidate alone previews offline with no request; --compare without a folder is local exit 1 before any request. Keep the existing local refusal for the case where the response has neither current nor patchyLook; the server never sends it, but the schema allows it.

    Key interfaces:

    • CompanyLook.patchyLook: already on the wire; preview starts reading it. No API, server or generation change.
    • Pane ({ files, label, note? }) and previewPage(first, second?): reuse as-is; no renderer change.

    Acceptance criteria:

    • With no company look, patchy look preview --json exits 0 with { ok: true, failures: [] }; the file shows "The Patchy look" and the note, has no data:image/svg+xml logo, and passes validateHtml.
    • With no company look, patchy look preview <dir> --compare writes two frames titled "Candidate" and "The Patchy look".
    • With a company look, both commands behave as today (existing CLI tests stay green).
    • A candidate alone sends no request; --compare with no folder is still exit 1 with no request.
    • Docs that describe the old behaviour are updated: the CLI README's look section (command table, the --compare paragraph and the exit-1 paragraph), ADR-0004's look preview contract, the product doc's specimen paragraph, the command's own help strings, and the comment on the browser-tier compare spec (comparison needs an instance, not "a current look").
    • The global patchy skill's "Changing the look" guidance says --compare shows the candidate beside the company's look, or the Patchy look when there is none, and the skills-lock.json hash matches.

    Out of scope:

  3. added
    enhancement
    ready-for-agent
    and removed
    needs-triage
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clienhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions