fix: Change unifySameTitleSession default value to false (#48)

* refactor: Clean up message handling in ClaudeCodeLifeCycleService

- Removed debug logging from handleMessage function.
- Eliminated unnecessary fallback message check in message iteration loop.

This improves code readability and performance by streamlining message processing.

* fix: Change unifySameTitleSession default value to false

Changed the default value of unifySameTitleSession configuration from true to false.
This affects both the Zod schema definition and the UserConfigService initial state.

Updated README.md to reflect the new default value in the User Settings table.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
きむそん
2025-11-02 13:02:38 +09:00
committed by GitHub
parent 76ab4d641d
commit 6c93fe58b0
4 changed files with 3 additions and 9 deletions

View File

@@ -103,7 +103,7 @@ Settings can be configured from the sidebar in Claude Code Viewer.
| Setting | Default | Description |
| --- | --- | --- |
| Hide sessions without user messages | true | Claude Code creates logs for operations like `/compact` that aren't tied to actual tasks, which can create noise. When enabled, sessions without user messages are hidden. |
| Unify sessions with same title | true | When resuming, Claude Code creates a new session with regenerated conversation logs. When enabled, only the latest session with the same title is displayed. |
| Unify sessions with same title | false | When resuming, Claude Code creates a new session with regenerated conversation logs. When enabled, only the latest session with the same title is displayed. |
| Enter Key Behavior | Shift+Enter | Specifies which key combination sends messages. Options include Enter, Shift+Enter, and Command+Enter. |
| Permission Mode | Ask permission | Controls the approval logic when Claude Code requests tool invocations. By default, users approve requests through the UI. This feature requires Claude Code v1.0.82 or later; earlier versions automatically approve regardless of this setting. |
| Theme | System | Toggles between Dark Mode and Light Mode. Default follows system settings. |

View File

@@ -147,8 +147,6 @@ const LayerImpl = Effect.gen(function* () {
const handleMessage = (message: SDKMessage) =>
Effect.gen(function* () {
console.log("[debug] handleMessage", message.type);
const processState = yield* sessionProcessService.getSessionProcess(
sessionProcess.def.sessionProcessId,
);
@@ -288,10 +286,6 @@ const LayerImpl = Effect.gen(function* () {
for await (const message of messageIter) {
const fallbackMessage = fallbackSdkMessage(message);
if (fallbackMessage === null) {
continue;
}
const result = await Runtime.runPromise(runtime)(
handleMessage(fallbackMessage),
).catch((error) => {

View File

@@ -5,7 +5,7 @@ import type { InferEffect } from "../../../lib/effect/types";
const LayerImpl = Effect.gen(function* () {
const configRef = yield* Ref.make<UserConfig>({
hideNoUserMessageSession: true,
unifySameTitleSession: true,
unifySameTitleSession: false,
enterKeyBehavior: "shift-enter-send",
permissionMode: "default",
locale: "ja",

View File

@@ -3,7 +3,7 @@ import { localeSchema } from "../../../lib/i18n/schema";
export const userConfigSchema = z.object({
hideNoUserMessageSession: z.boolean().optional().default(true),
unifySameTitleSession: z.boolean().optional().default(true),
unifySameTitleSession: z.boolean().optional().default(false),
enterKeyBehavior: z
.enum(["shift-enter-send", "enter-send", "command-enter-send"])
.optional()