Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Small things

- [ ] Submitting new messages should scroll to bottom
- [x] Submitting new messages should scroll to bottom
- [ ] Only show last 10 threads for a given project
- [ ] Thread archiving
- [ ] New projects should go on top
Expand Down
16 changes: 4 additions & 12 deletions apps/server/src/provider/Layers/ProviderHealth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,7 @@ const runCommandHealthProbe = <R>(effect: Effect.Effect<CommandResult, unknown,
Effect.timeoutOption(DEFAULT_TIMEOUT_MS),
Effect.exit,
Effect.map((exit) =>
Exit.isSuccess(exit)
? Result.succeed(exit.value)
: Result.fail(Cause.squash(exit.cause)),
Exit.isSuccess(exit) ? Result.succeed(exit.value) : Result.fail(Cause.squash(exit.cause)),
),
);

Expand Down Expand Up @@ -1087,9 +1085,7 @@ export const makeCheckClaudeProviderStatus = (
const executable = nonEmptyTrimmed(binaryPath) ?? "claude";

// Probe 1: `claude --version` — is the CLI reachable?
const versionProbe = yield* runCommandHealthProbe(
runClaudeCommand(["--version"], executable),
);
const versionProbe = yield* runCommandHealthProbe(runClaudeCommand(["--version"], executable));

if (Result.isFailure(versionProbe)) {
const error = versionProbe.failure;
Expand Down Expand Up @@ -1202,9 +1198,7 @@ export const makeCheckGeminiProviderStatus = (
const checkedAt = new Date().toISOString();
const executable = nonEmptyTrimmed(binaryPath) ?? "gemini";

const versionProbe = yield* runCommandHealthProbe(
runGeminiCommand(["--version"], executable),
);
const versionProbe = yield* runCommandHealthProbe(runGeminiCommand(["--version"], executable));

if (Result.isFailure(versionProbe)) {
const error = versionProbe.failure;
Expand Down Expand Up @@ -1551,9 +1545,7 @@ export const makeCheckCursorProviderStatus = (
const checkedAt = new Date().toISOString();
const executable = resolveCursorAgentBinaryPath(nonEmptyTrimmed(binaryPath));

const versionProbe = yield* runCommandHealthProbe(
runCursorCommand(["--version"], executable),
);
const versionProbe = yield* runCommandHealthProbe(runCursorCommand(["--version"], executable));

if (Result.isFailure(versionProbe)) {
const error = versionProbe.failure;
Expand Down
4 changes: 1 addition & 3 deletions apps/web/src/components/BrowserPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,7 @@ function isBrowserPerfLoggingEnabled(): boolean {
}

try {
return (
window.localStorage.getItem("peakcode:browser-perf") === "1"
);
return window.localStorage.getItem("peakcode:browser-perf") === "1";
} catch {
return false;
}
Expand Down
3 changes: 3 additions & 0 deletions apps/web/src/components/ChatView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5567,6 +5567,9 @@ export default function ChatView({
isAtEndRef.current = true;
showScrollDebouncer.current.cancel();
setShowScrollToBottom(false);
window.requestAnimationFrame(() => {
scrollToEnd(true);
});

setThreadError(threadIdForSend, null);
if (expiredTerminalContextCount > 0) {
Expand Down
Loading