Revert "fix: harden plugin feature gating" (#15102)

Reverts openai/codex#15020

I messed up the commit in my PR and accidentally merged changes that
were still under review.
This commit is contained in:
xl-openai
2026-03-18 15:19:29 -07:00
committed by GitHub
parent e5de13644d
commit 86982ca1f9
40 changed files with 52 additions and 926 deletions

View File

@@ -3131,7 +3131,6 @@ class ThreadSourceKind(Enum):
vscode = "vscode"
exec = "exec"
app_server = "appServer"
custom = "custom"
sub_agent = "subAgent"
sub_agent_review = "subAgentReview"
sub_agent_compact = "subAgentCompact"
@@ -5811,19 +5810,11 @@ class SubAgentSessionSource(BaseModel):
sub_agent: Annotated[SubAgentSource, Field(alias="subAgent")]
class CustomSessionSource(BaseModel):
model_config = ConfigDict(
extra="forbid",
populate_by_name=True,
)
custom: str
class SessionSource(RootModel[SessionSourceValue | CustomSessionSource | SubAgentSessionSource]):
class SessionSource(RootModel[SessionSourceValue | SubAgentSessionSource]):
model_config = ConfigDict(
populate_by_name=True,
)
root: SessionSourceValue | CustomSessionSource | SubAgentSessionSource
root: SessionSourceValue | SubAgentSessionSource
class Thread(BaseModel):