In runSingleAgent, the effective working directory is computed twice:
- When resolving relative skill paths (
baseDir = cwd ?? defaultCwd).
- When computing the isolated subagent session directory (
effectiveCwd = cwd ?? defaultCwd).
These two expressions are identical and should be unified into a single effectiveCwd variable declared once and reused in both places.
This is a pure maintainability cleanup with no functional change.
In
runSingleAgent, the effective working directory is computed twice:baseDir = cwd ?? defaultCwd).effectiveCwd = cwd ?? defaultCwd).These two expressions are identical and should be unified into a single
effectiveCwdvariable declared once and reused in both places.This is a pure maintainability cleanup with no functional change.