Skip to content

ReadlineSlashContextInput

Defined in: packages/agent/src/modules/interactiveSessionModule.ts:215

GS2-88 — everything that varies between one /command dispatch on this surface and the next.

Kept as a named input to buildReadlineSlashContext rather than spread through a closure so the context the plain readline session hands the shared registry is a VALUE a test can inspect. packages/app/spec/tui/slashCommands.spec.ts compares the keys it produces against the context fields the commands actually read, which is what makes a future command that reads a field this surface never populates fail loudly instead of degrading into a false explanation.

autocompact: AutocompactStatus | undefined

Defined in: packages/agent/src/modules/interactiveSessionModule.ts:229

EXT-161 — the compaction threshold in force, read fresh per dispatch.


config: GthConfig

Defined in: packages/agent/src/modules/interactiveSessionModule.ts:219

The resolved config, for /config and /debug-dump.


configWarnings: string[]

Defined in: packages/agent/src/modules/interactiveSessionModule.ts:225

GS2-115 — the config-validation warnings emitted while the config loaded, which /config renders above the summary. Required rather than optional: a surface that has opened no capture window has to say so by passing an empty array, not by leaving the field out.


conversationId: number | undefined

Defined in: packages/agent/src/modules/interactiveSessionModule.ts:231

GS2-20 — the live conversation id, which /resume moves mid-session.


dumpDebugSession: (input) => object

Defined in: packages/agent/src/modules/interactiveSessionModule.ts:235

GS2-56 — this surface’s /debug-dump writer.

DebugDumpInput

object

archiveDir: string


history: HistorySlashProps

Defined in: packages/agent/src/modules/interactiveSessionModule.ts:233

GS2-88 — the /history /insights /search inputs, built by core’s one shared builder.


mode: "code" | "chat"

Defined in: packages/agent/src/modules/interactiveSessionModule.ts:217

The session command (chat / code), which several commands report per-command config for.


turnCount: number

Defined in: packages/agent/src/modules/interactiveSessionModule.ts:227

Committed turns so far, for /status.