Files
coder/coderd/x/chatd/chattool/planpath_helpers_test.go
T
Michael Suchacz 1cf0354f72 feat: add plan mode with restricted tool boundary (#24236)
> This PR was authored by Mux on behalf of Mike.

## Summary
- add persistent plan mode for chats and the chat-specific plan file
flow
- add structured planning tools such as `ask_user_question` and
`propose_plan`
- keep `write_file` and `edit_files` constrained to the chat-specific
plan file during plan turns
- allow shell exploration in plan mode, including subagents, via
`execute` and `process_output`
- block implementation-oriented, provider-native, MCP, dynamic, and
computer-use tools during plan turns
- update the chat UI, tests, and docs for the new planning flow
2026-04-16 11:12:01 +02:00

20 lines
728 B
Go

package chattool_test
func sharedPlanPathResolvedMessage(requestedPath, planPath string) string {
return "the plan path " + requestedPath +
" is no longer supported at the home root; use the chat-specific plan path: " + planPath
}
func planPathVerificationMessage(requestedPath string) string {
return "the plan path " + requestedPath +
" could not be verified because the workspace is currently unavailable to resolve the chat-specific plan path, try again shortly"
}
func editFilesBatchRejectedMessage(message string) string {
return message + "; no files in this batch were applied"
}
func relativePlanPathMessage() string {
return "plan files must use absolute paths; use the chat-specific absolute plan path"
}