mirror of
https://github.com/coder/coder.git
synced 2026-06-04 05:28:20 +00:00
1cf0354f72
> 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
20 lines
728 B
Go
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"
|
|
}
|