Blocking findings: 1. A Codex RPC error or early exit threw past LimitProbe and stopped the refresh loop, so Claude stopped updating too (D2). Every probe failure is now a failed probe result, the loop records an unexpected tick failure and keeps ticking, shutdown cancellation still propagates, the app reports failed operations, and the CLI exits 1 instead of crashing. Fake app-server modes in the GUI process host test errors, EOF and garbage. 2. Totals converted local midnight directly and threw where midnight does not exist (Cairo, Santiago, Beirut). Today and the week start through CalendarDays now. 3. Daily chart labels used UTC dates for local-day buckets; labels and tooltips now share the local date. Review notes fixed as well: Claude Code installed with npm on Windows is found through its native binary or cli.js; the plugin ends cleanly on a bad host frame; Linux autostart honours XDG_CONFIG_HOME; the unused stub installer and the worker names in docs are gone. Refs #1
This commit is contained in:
@@ -6,6 +6,22 @@ namespace FinalToken.Core.Tests;
|
||||
|
||||
public class DiscoveryAndPolicyTests
|
||||
{
|
||||
[Fact]
|
||||
public void WindowsClaudeNpmShimResolvesInstalledNativeBinary()
|
||||
{
|
||||
using var directory = new TestDirectory(); directory.Write("claude.cmd", "fixture");
|
||||
var binary = directory.Write("node_modules/@anthropic-ai/claude-code/bin/claude.exe", "fixture native");
|
||||
Assert.Equal(binary, CliDiscovery.Find(Provider.Claude, searchPath: directory.Path, windows: true).Command?.FileName);
|
||||
}
|
||||
[Fact]
|
||||
public void WindowsClaudeNpmShimFallsBackToLegacyCliScriptWithoutShell()
|
||||
{
|
||||
using var directory = new TestDirectory(); directory.Write("claude.cmd", "fixture");
|
||||
var script = directory.Write("node_modules/@anthropic-ai/claude-code/cli.js", "fixture script");
|
||||
var node = directory.Write("node.exe", "fixture node");
|
||||
var command = CliDiscovery.Find(Provider.Claude, searchPath: directory.Path, windows: true).Command;
|
||||
Assert.NotNull(command); Assert.Equal(node, command.FileName); Assert.Equal([script], command.PrefixArguments);
|
||||
}
|
||||
[Fact]
|
||||
public void FindsNativeWindowsAndHonorsOverride()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user