opencode-bridge 0.1.4__tar.gz → 0.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: opencode-bridge
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: MCP server for continuous OpenCode discussion sessions
5
5
  Project-URL: Repository, https://github.com/genomewalker/opencode-bridge
6
6
  Author: Antonio Fernandez-Guerra
@@ -303,18 +303,14 @@ Set via:
303
303
  session = self.sessions[sid]
304
304
  session.add_message("user", message)
305
305
 
306
- # For long messages, write to temp file to avoid shell escaping issues
307
- temp_file = None
308
- if len(message) > 500:
309
- temp_file = tempfile.NamedTemporaryFile(
310
- mode='w', suffix='.txt', delete=False, prefix='opencode_msg_'
311
- )
312
- temp_file.write(message)
313
- temp_file.close()
314
- args = ["run", "Respond to the message in the attached file."]
315
- files = (files or []) + [temp_file.name]
316
- else:
317
- args = ["run", message]
306
+ # Always write message to temp file to avoid shell escaping issues
307
+ temp_file = tempfile.NamedTemporaryFile(
308
+ mode='w', suffix='.md', delete=False, prefix='opencode_msg_'
309
+ )
310
+ temp_file.write(message)
311
+ temp_file.close()
312
+ args = ["run", "Respond to the request in the attached message file."]
313
+ files = (files or []) + [temp_file.name]
318
314
 
319
315
  args.extend(["--model", session.model])
320
316
  args.extend(["--agent", session.agent])
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "opencode-bridge"
7
- version = "0.1.4"
7
+ version = "0.1.5"
8
8
  description = "MCP server for continuous OpenCode discussion sessions"
9
9
  readme = "README.md"
10
10
  license = "MIT"
File without changes