Der Button, der aus „Problem erkannt" ein „Problem gelöst" macht: startet eine interaktive Claude-Session, die dem Nutzer beim Einrichten hilft. ## Warum externes Terminal Der ConPTY-Stack (`PtyTerminalSession`, `ConPtyPaneView`) liegt in `ClaudeDo.Ui` und ist Avalonia — der Installer ist WPF und referenziert nur Data/Releases/Localization. Beim Fresh Install sind `app\`/`worker\` außerdem noch n ClaudeDo-Task: 4e196058-38a3-404f-9862-4cb0e90195da
23 lines
561 B
C#
23 lines
561 B
C#
using System.Diagnostics;
|
|
using ClaudeDo.Installer.Core.Interfaces;
|
|
|
|
namespace ClaudeDo.Installer.Tests.Core;
|
|
|
|
internal sealed class FakeProcessLauncher : IProcessLauncher
|
|
{
|
|
private readonly Exception? _throwOnStart;
|
|
|
|
public FakeProcessLauncher(Exception? throwOnStart = null)
|
|
{
|
|
_throwOnStart = throwOnStart;
|
|
}
|
|
|
|
public ProcessStartInfo? LastStartInfo { get; private set; }
|
|
|
|
public void Start(ProcessStartInfo startInfo)
|
|
{
|
|
LastStartInfo = startInfo;
|
|
if (_throwOnStart is not null) throw _throwOnStart;
|
|
}
|
|
}
|