LooksLikeHomePlanFile reports whether requestedPath is a plan.md variant (case-insensitive) sitting directly in the workspace home directory. The filename is compared case-insensitively because LLM output varies.
(requestedPath, home string)
| 94 | // directory. |
| 95 | // The filename is compared case-insensitively because LLM output varies. |
| 96 | func LooksLikeHomePlanFile(requestedPath, home string) bool { |
| 97 | normalized := path.Clean(requestedPath) |
| 98 | normalizedHome := path.Clean(home) |
| 99 | |
| 100 | return looksLikePlanFileName(normalized) && |
| 101 | strings.EqualFold(path.Dir(normalized), normalizedHome) |
| 102 | } |
| 103 | |
| 104 | // looksLikeLegacySharedPlanPath reports whether requestedPath |
| 105 | // matches the legacy shared plan path (case-insensitive). Used as a |