Skip to content

[codex] Add Teich Studio#8

Merged
armand0e merged 5 commits into
mainfrom
feat/teich-studio
Jun 12, 2026
Merged

[codex] Add Teich Studio#8
armand0e merged 5 commits into
mainfrom
feat/teich-studio

Conversation

@armand0e

Copy link
Copy Markdown
Collaborator

Summary

Adds Teich Studio as a browser UI for configuring projects, editing/importing prompts, running batch generation, steering interactive sessions, saving traces, and previewing saved output traces.

Details

  • Adds the teich studio CLI command and packages the FastAPI server/static assets under src/teich/studio.
  • Adds Studio backend APIs for config, prompts, batch jobs, interactive terminal/chat sessions, trace listing, and trace previews.
  • Adds xterm-based terminal support for native agent sessions, including save/discard handling and trace export.
  • Fixes the benign Windows websocket terminal noise observed after saving a trace by draining terminal websocket tasks and switching Studio to the selector event loop policy on Windows before uvicorn starts.
  • Adds focused Studio backend tests for project state, summarizers, API behavior, terminal task cleanup, and Windows event loop policy setup.

Validation

  • uv run ruff check src/teich/cli.py src/teich/studio tests/test_studio.py
  • uv run pytest -s tests/test_studio.py tests/test_cli.py
  • uv build
  • uv run python -m compileall -q src tests
  • Manual smoke: teich studio --no-open --port 8420, /api/status, and root HTML/static script references

Note: plain pytest capture on this Windows-mounted checkout hit a pytest temp-file capture issue, so the focused pytest runs were executed with -s.

@armand0e
armand0e marked this pull request as ready for review June 11, 2026 22:34

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd144eefe1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/teich/studio/project.py Outdated
Comment thread src/teich/studio/static/app.js

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fdb4f4f5f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/teich/studio/static/app.js Outdated
Comment thread src/teich/studio/generation.py
Comment thread src/teich/studio/static/app.js
Comment thread src/teich/studio/server.py Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1400814765

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/teich/studio/server.py Outdated
Comment thread src/teich/studio/events.py

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef3db582df

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/teich/studio/project.py
Comment thread src/teich/studio/static/app.js
Comment thread src/teich/studio/interactive.py
@armand0e
armand0e merged commit 1e36637 into main Jun 12, 2026
3 checks passed
@armand0e
armand0e deleted the feat/teich-studio branch June 12, 2026 02:09
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