Skip to content

TUI: enforce core boundary#17399

Merged
etraut-openai merged 4 commits intomainfrom
etraut/tui-decorification
Apr 11, 2026
Merged

TUI: enforce core boundary#17399
etraut-openai merged 4 commits intomainfrom
etraut/tui-decorification

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented Apr 11, 2026

Problem: The TUI still depended on codex-core directly in a number of places, and we had no enforcement from keeping this problem from getting worse.

Solution: Route TUI core access through codex-app-server-client::legacy_core, add CI enforcement for that boundary, and re-export this legacy bridge inside the TUI as crate::legacy_core so the remaining call sites stay readable. There is no functional change in this PR — just changes to import targets.

Over time, we can whittle away at the remaining symbols in this legacy namespace with the eventual goal of removing them all. In the meantime, this linter rule will prevent us from inadvertently importing new symbols from core.

@etraut-openai etraut-openai changed the title TUI: enforce core boundary and shorten legacy imports TUI: enforce core boundary Apr 11, 2026
Copy link
Copy Markdown
Contributor

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

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: ef8281353b

ℹ️ 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 .github/scripts/verify_tui_core_boundary.py
@etraut-openai etraut-openai merged commit 66e13ef into main Apr 11, 2026
20 of 22 checks passed
@etraut-openai etraut-openai deleted the etraut/tui-decorification branch April 11, 2026 03:25
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants