Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,12 @@ def update_options(
self._mark_restart_needed()

async def update_instructions(self, instructions: str) -> None:
if self._opts.model == "gemini-3.1-flash-live-preview":
logger.warning(
"update_instructions is not compatible with 'gemini-3.1-flash-live-preview' and will be ignored."
)
self._opts.instructions = instructions
return
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
if not is_given(self._opts.instructions) or self._opts.instructions != instructions:
self._opts.instructions = instructions

Expand All @@ -573,6 +579,17 @@ async def update_instructions(self, instructions: str) -> None:
)

async def update_chat_ctx(self, chat_ctx: llm.ChatContext) -> None:
if self._opts.model == "gemini-3.1-flash-live-preview":
logger.warning(
"update_chat_ctx is not compatible with 'gemini-3.1-flash-live-preview' and will be ignored."
)
self._chat_ctx = chat_ctx.copy(
exclude_handoff=True,
exclude_instructions=True,
exclude_empty_message=True,
exclude_config_update=True,
)
return
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
# Check for system/developer messages that will be dropped
system_msg_count = sum(
1 for msg in chat_ctx.messages() if msg.role in ("system", "developer")
Expand Down
Loading