plandex-ai/plandex · error
error getting cached map: %v
Error message
error getting cached map: %v
What it means
In LoadCachedFileMapHandler, db.GetCachedMap fails for a requested file path while assembling cached map data. DB/storage read error for the cached map record — not a cache miss (nil result is handled separately).
Source
Thrown at app/server/handlers/file_maps.go:147
cachedMetaByPath := map[string]*shared.Context{}
cachedMapsByPath := map[string]*db.CachedMap{}
var mu sync.Mutex
errCh := make(chan error, len(req.FilePaths))
for _, path := range req.FilePaths {
go func(path string) {
defer func() {
if r := recover(); r != nil {
log.Printf("panic in LoadCachedFileMapHandler: %v\n%s", r, debug.Stack())
errCh <- fmt.Errorf("panic in LoadCachedFileMapHandler: %v\n%s", r, debug.Stack())
runtime.Goexit() // don't allow outer function to continue and double-send to channel
}
}()
cachedContext, err := db.GetCachedMap(plan.OrgId, plan.ProjectId, path)
if err != nil {
errCh <- fmt.Errorf("error getting cached map: %v", err)
return
}
if cachedContext != nil {
mu.Lock()
cachedMetaByPath[path] = cachedContext.ToMeta().ToApi()
cachedMapsByPath[path] = &db.CachedMap{
MapParts: cachedContext.MapParts,
MapShas: cachedContext.MapShas,
MapTokens: cachedContext.MapTokens,
MapSizes: cachedContext.MapSizes,
}
mu.Unlock()
}
errCh <- nil
}(path)
}
for range req.FilePaths {View on GitHub (pinned to e2d772072e)
Solutions
- Check the wrapped GetCachedMap error (DB/storage)
- Verify the cache record for that plan/path is not corrupted
- Re-generate the map by loading without cache
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at app/server/handlers/file_maps.go:147 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of plandex-ai/plandex@e2d772072e (2026-09-05).
Data as JSON: /api/errors/e1d00f49910d8ecb.
Report an issue: GitHub.