Skip to content

refactor(claude-session): Remove initial prompt in session initialization#23

Closed
ziscloud wants to merge 1 commit intospring-ai-community:mainfrom
ziscloud:refactor-initial-prompt
Closed

refactor(claude-session): Remove initial prompt in session initialization#23
ziscloud wants to merge 1 commit intospring-ai-community:mainfrom
ziscloud:refactor-initial-prompt

Conversation

@ziscloud
Copy link
Copy Markdown

@ziscloud ziscloud commented Dec 23, 2025

The default initial prompt will produce an unexpected response and token consuming.

…tion

- Remove redundant effectivePrompt variable assignment
- Directly use initialPrompt instead of creating duplicate variable
- Add null check logging for sessions without initial prompt
- Maintain same functionality while reducing code complexity
- Improve code readability by eliminating unnecessary variable
@markpollack
Copy link
Copy Markdown
Contributor

Thank you for the cleanup, @ziscloud! Good observation about the unnecessary default prompt.

Since this PR was opened, session handling has been rewritten with the new AgentSession and ClaudeAgentSession APIs. The code path this PR modifies no longer exists in the current architecture.

Closing as stale. Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants