revert(agent): remove CODER_AGENT_IS_SUB_AGENT cli flag (#17875)

The RFC has changed, this information will be passed through the
manifest instead.
This commit is contained in:
Danielle Maywood
2025-05-16 12:04:21 +01:00
committed by GitHub
parent cf98268031
commit 83df55700b
2 changed files with 0 additions and 18 deletions

View File

@ -54,7 +54,6 @@ func (r *RootCmd) workspaceAgent() *serpent.Command {
blockFileTransfer bool
agentHeaderCommand string
agentHeader []string
subAgent bool
experimentalDevcontainersEnabled bool
)
@ -362,7 +361,6 @@ func (r *RootCmd) workspaceAgent() *serpent.Command {
PrometheusRegistry: prometheusRegistry,
BlockFileTransfer: blockFileTransfer,
Execer: execer,
SubAgent: subAgent,
ExperimentalDevcontainersEnabled: experimentalDevcontainersEnabled,
})
@ -509,17 +507,6 @@ func (r *RootCmd) workspaceAgent() *serpent.Command {
Description: "Allow the agent to automatically detect running devcontainers.",
Value: serpent.BoolOf(&experimentalDevcontainersEnabled),
},
{
Flag: "is-sub-agent",
Default: "false",
Env: "CODER_AGENT_IS_SUB_AGENT",
Description: "Specify whether this is a sub agent or not.",
Value: serpent.BoolOf(&subAgent),
// As `coderd` handles the creation of sub-agents, it does not make
// sense for this to be exposed. We do not want people setting an
// agent as a sub-agent if it is not.
Hidden: true,
},
}
return cmd