Terminal link resolution can trigger container mount-point scans outside project scans
Context
During review of #556, an unrelated pre-existing behavior was observed around terminal path resolution and container mount-point discovery.
The issue was reproduced with a terminal profile that displays a shortened working-directory path. When provideTerminalLinks() encounters a path it cannot resolve directly, container mount-point discovery can be triggered even when no explicit project scan is in progress.
This behavior is separate from the path-with-spaces work discussed in #556.
Observed behavior
Terminal output containing an unresolved path can cause unexpected BitBake: Scan Project terminals to appear and execute container path-discovery commands.
The same investigation also showed redundant discovery during a project scan: multiple scan terminals could be opened where only the normal project-scan terminal was expected.
The behavior therefore appears to be reachable both:
- while a project scan is running;
- from ordinary terminal-link processing outside a project scan.
Expected behavior
Handling terminal links should not unexpectedly start scan-related container mount-point discovery merely because terminal output contains a path that cannot immediately be resolved.
Normal project scanning should also avoid redundant mount-point discovery terminals.
Scope
This issue only tracks the observed behavior.
It intentionally does not prescribe an implementation or propose a specific fix.
Related review discussion: #556.