Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate for launcher-added prompt instructions.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
Reported setup:
- Launch T3's Claude Code provider through
edgee launch claude, with Edgee MCP injection enabled (enable_mcp = true). - Start a new chat and send a substantive task.
- Check the corresponding Edgee Console session title.
A provider-independent regression probe would use a Claude executable wrapper that injects a unique --append-system-prompt-file after T3 builds its SDK options, then inspect the SDK initialize payload and effective prompt. This probe has not been run.
Expected behavior
The original session-specific instructions supplied by the launcher survive SDK initialization alongside T3's instructions, or T3 provides a supported handoff mechanism for launcher-supplied instructions.
Edgee's native naming instruction should reach the agent without requiring a second naming rule in T3 settings.
Actual behavior
Edgee Console sessions remain unnamed. Routing through Edgee works, the Edgee MCP tools are available, and explicitly requesting a setSessionName call successfully renames the current session.
The launched Claude process includes Edgee's --append-system-prompt-file flag, but T3 constructs its own SDK append from T3 runtime instructions and append arguments in T3 settings only. Arguments added later by the Edgee launcher are outside that collection.
Read-only inspection of the installed Claude executable found this SDK initialize assignment:
if (e.appendSystemPrompt !== void 0) b.appendSystemPrompt = e.appendSystemPrompt;It replaces the earlier CLI append value rather than merging it. Combined with T3's unconditional SDK append, this identifies the prompt-precedence mechanism. The actual initialize payload was not captured in the provider logs, and no fresh-chat end-to-end test was run during this investigation.
Relevant T3 source: makeClaudeQueryOptions and configured prompt-file reader. The same pattern was verified in the installed application bundle.
Edgee supplies the original naming instruction through its Claude launcher, rather than through T3's configured launch arguments.
Impact
Major degradation or frequent failure of automatic session naming; ordinary chat execution still works.
Version or commit
T3 Code Beta 0.1.3 (installed application package version); Claude Code 2.1.312; Edgee CLI 0.14.1.
Environment
macOS, Darwin 27.2.0; Claude Agent SDK provider; Edgee gateway.
Logs or stack traces
No raw logs attached: launch configuration contains credentials and session identifiers. Relevant source excerpts and sanitized observations are included above.
Screenshots, recordings, or supporting files
Read-only inspection of installed application code and launch arguments. No application binaries or provider settings were modified.
Workaround
An explicit naming instruction in T3's configured --append-system-prompt would use the path T3 already preserves, but duplicates Edgee's native rule. It was not applied or tested, and is not the desired integration fix.
Loading Edgee's shared system-prompt.txt directly is unsafe for concurrent launches because another launch can replace its session ID. A correct handoff needs session-specific instructions and verified ID mapping.
Related issue and acceptance criteria
Related: #13934, fixed by #20413. That fix merges append arguments already present in T3 settings. This report concerns arguments added by an external launcher after SDK options construction.
Suggested acceptance checks:
- Preserve original launcher instructions alongside T3 instructions, without duplicating them.
- Start two concurrent chats and confirm each names only its own Edgee session.
- Keep configured append-argument behavior and session resume behavior intact.
- Verify prompt transport separately from real-model MCP adherence.
Activity