Skip to content

Conversation

ezyang
Copy link
Owner

@ezyang ezyang commented Apr 14, 2025

Stack from ghstack (oldest at bottom):

Instead of passing a single static chat id across all conversations, we're going to pass the current Git commit hash. Whenever a command returns, we will query and report what the new current commit hash is in the output. Update the system prompt to ensure that we maintain a current commit hash state and pass it / update it to all tool calls. Do NOT manually update every subtool, instead, there should be unified handling in the codemcp tool main body. Previously you already implemented get_current_commit_hash.

08d4d1d  (Base revision)
bcba045  Import get_current_commit_hash function
4227903  Add helper function to append commit hash to result
808a590  Update ReadFile to append commit hash to result
aed09f5  Update WriteFile to append commit hash to result
e410109  Update EditFile to append commit hash to result
HEAD     Update LS to append commit hash to result

codemcp-id: 257-feat-use-git-commit-hash-as-chat-id

[ghstack-poisoned]
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.

1 participant