feat(FN-1479): restore projectId on subtask session rehydration

- Restore projectId field when rehydrating subtask sessions from SQLite via buildSubtaskSessionFromRow()
- Add regression tests for projectId forwarding in subtask start-streaming route
- Add documentation note in memory.md for durable subtask session context propagation
This commit is contained in:
gsxdsm
2026-04-12 18:25:01 -07:00
parent c413353e43
commit 9204fc673c
4 changed files with 98 additions and 0 deletions

View File

@@ -126,6 +126,7 @@ function buildSubtaskSessionFromRow(row: AiSessionRow): SubtaskInternalSession {
createdAt,
updatedAt,
agent: undefined,
projectId: row.projectId ?? undefined,
};
}