fix(workflows): add text_mode config for Claude Code remote session compatibility (#1214)

- Add workflow.text_mode config option (default: false) that replaces
  AskUserQuestion TUI menus with plain-text numbered lists
- Document --text flag and config-set workflow.text_mode true as the
  fix for /rc remote sessions where the Claude App cannot forward TUI
  menu selections
- Update discuss-phase.md with text mode parsing and answer_validation
  fallback documentation
- Add text_mode to loadConfig defaults and VALID_CONFIG_KEYS
- Add regression tests for config-set and loadConfig
This commit is contained in:
Tom Boucher
2026-03-19 09:19:01 -04:00
parent 1427aab41b
commit 0487151142
6 changed files with 36 additions and 0 deletions

View File

@@ -287,6 +287,16 @@ describe('config-set command', () => {
);
});
test('sets workflow.text_mode for remote session support', () => {
writeConfig(tmpDir, {});
const result = runGsdTools('config-set workflow.text_mode true', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const config = readConfig(tmpDir);
assert.strictEqual(config.workflow.text_mode, true);
});
test('errors when no key path provided', () => {
const result = runGsdTools('config-set', tmpDir);
assert.strictEqual(result.success, false);

View File

@@ -61,6 +61,7 @@ describe('loadConfig', () => {
assert.strictEqual(config.brave_search, false);
assert.strictEqual(config.parallelization, true);
assert.strictEqual(config.nyquist_validation, true);
assert.strictEqual(config.text_mode, false);
});
test('reads model_profile from config.json', () => {