Repository navigation
feat: recognizable process titles for every Synloq entrypoint - #145
Merged
Merged
Conversation
Processes were indistinguishable in OS monitors (Process Explorer, Task Manager with the command-line column, ps). Now, after config/argument parsing: - synloq serve → 'synloq-relay (port N)' - MCP stdio bridge → 'synloq-mcp: <agentId>' (role from the config) - standalone adapter → 'synloq-adapter: <agentId>' - claude-hook / codex-hook → 'synloq-hook: claude' / 'synloq-hook: codex' setProcessTitle is best-effort: embedders that disallow retitling keep their original title, never a crash. The MCP stdio protocol is untouched — titles never write to stdout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Проблема
Процессы Synloq неразличимы в мониторах ОС (Process Explorer, Диспетчер задач с колонкой «Командная строка», ps) — relay, MCP-бриджи ролей, адаптеры и хуки выглядят одинаково.
Решение
process.titleпосле парсинга конфига/аргументов (когда роль/порт известны):synloq servesynloq-relay (port N)synloq mcp/node dist/mcp/stdio.js)synloq-mcp: <agentId>synloq adaptersynloq-adapter: <agentId>claude-hook/codex-hooksynloq-hook: claude/synloq-hook: codexsetProcessTitle— best-effort: эмбеддеры, запрещающие смену заголовка, сохраняют исходный, без краша (наблюдено вживую: тест-раннер под Kimi runtime не дал переписать title — тест это учитывает). MCP stdio-протокол не тронут — title ничего не пишет в stdout.Relay, поднятый supervisor'ом внутри MCP-процесса канала, отдельного title не получает — процесс остаётся
synloq-mcp: <role>(один процесс = канал + вложенный relay), это намеренно.Тесты
test/cli/process-title.test.ts: формат всех title + контракт best-effort (set или запрещено — оба ок, никогда не бросает). Полныйpnpm verifyзелёный: 129 файлов / 1152 теста.