fix(build): resolve three failing tests across integration and tui modules

SessionOrchestratorIntegrationTest: wire approvalRepository into
OrchestratorRepositories constructor which gained the field in the kernel
refactor. TambouiKeyMapperTest: correct ctrl-h to alt-h — the mapper has
always placed ToggleApprovalOverlay under the Alt branch, not Ctrl.
SessionOrchestrator.emit: replace substring(0,7) with take(7) to avoid
StringIndexOutOfBoundsException when session IDs are shorter than 7 chars.
This commit is contained in:
2026-05-24 23:11:17 +04:00
parent 14141f2f72
commit 850c6df743
3 changed files with 11 additions and 3 deletions
@@ -646,7 +646,7 @@ abstract class SessionOrchestrator(
// --- event emission ---
internal suspend fun emit(sessionId: SessionId, payload: EventPayload) {
log.debug("[session {}] emitting event, payload: {}", sessionId.value.substring(0, 7), payload)
log.debug("[session {}] emitting event, payload: {}", sessionId.value.take(7), payload)
eventStore.append(
NewEvent(
metadata = EventMetadata(