Skip to content

[Bug]: Agents can't switch T3 Code back to the stock theme #36710

Closed

Description

@super-original

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Start on the stock "T3 Code" theme.
  2. Ask an agent to try a custom theme. It calls t3_theme_set with a new theme and themeId.
  3. Ask the agent to put the default theme back.

Expected behavior

The agent can return the app to the stock "T3 Code" theme, the same way it switched away from it.

Actual behavior

No t3_theme_set input selects the stock theme:

  • The stock theme is saved as an empty defaultTheme. themeId must match the EnvironmentThemeId pattern, so "" is rejected, and an id like default fails because apply() only accepts BUILT_IN_THEME_IDS and published themes.
  • A theme published with css alone is refused for having no colors, so an agent can't add CSS on top of the stock palette either.
  • The guide returned by t3_theme_read says "To undo, set a built-in theme: t3-chat, grove, ocean, ember, or iris." Agents follow that and switch the user to T3 Chat, believing it's the default. current comes back as "" with nothing saying that means the stock theme.

The CLI can already do this with t3 theme clear, so the gap is in the MCP tool and its guide. In my case the agent cycled through T3 Chat and a recolored copy before I picked "T3 Code" in Settings by hand.

A fix could accept a way to clear the theme in t3_theme_set (and have connected clients follow it), list the stock theme in t3_theme_read, and correct the undo line in the guide.

Impact

Minor bug or occasional failure

Version or commit

v0.1.10-nightly.20261114.4682 (checked against main at ead133c)

Environment

macOS desktop app (Nightly)

Written by Claude Opus 5.5 on behalf of super-original

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions