While HarnessAgent supports permissionMode, that property is only about how the harness handles approvals for built-in tools by default. However harnesses also typically support multiple modes which aren't about tool approvals, but rather specific instructions and availability of tools, e.g. regular mode vs plan mode.
HarnessAgent doesn't support an abstraction for that yet, and the individual harness adapters don't provide manual control over it either. We should add a top-level mode concept, given how prevalent it is across harness adapters.
Originally reported as part of #19755.
While
HarnessAgentsupportspermissionMode, that property is only about how the harness handles approvals for built-in tools by default. However harnesses also typically support multiple modes which aren't about tool approvals, but rather specific instructions and availability of tools, e.g. regular mode vs plan mode.HarnessAgentdoesn't support an abstraction for that yet, and the individual harness adapters don't provide manual control over it either. We should add a top-levelmodeconcept, given how prevalent it is across harness adapters.Originally reported as part of #19755.