Skip to content

Cursor buildllm token context protocol 593a#1645

Open
nicsins wants to merge 11 commits into
agent0ai:mainfrom
dragon-and-panda:cursor_buildllm-token-context-protocol-593a
Open

Cursor buildllm token context protocol 593a#1645
nicsins wants to merge 11 commits into
agent0ai:mainfrom
dragon-and-panda:cursor_buildllm-token-context-protocol-593a

Conversation

@nicsins
Copy link
Copy Markdown

@nicsins nicsins commented May 16, 2026

No description provided.

nicsins and others added 11 commits April 5, 2025 14:54
Co-authored-by: nicsins <nicsins@gmail.com>
Co-authored-by: nicsins <nicsins@gmail.com>
Co-authored-by: nicsins <nicsins@gmail.com>
Co-authored-by: nicsins <nicsins@gmail.com>
Co-authored-by: nicsins <nicsins@gmail.com>
Co-authored-by: nicsins <nicsins@gmail.com>
…ous-innovation-agency-3733

Build autonomous innovation agency
Co-authored-by: nicsins <nicsins@gmail.com>
Co-authored-by: nicsins <nicsins@gmail.com>
Co-authored-by: nicsins <nicsins@gmail.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f8f256704b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

from typing import List

from ... import schemas
from ..orchestrator import PublishResult
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Move PublishResult out of the orchestrator import cycle

When the FastAPI app starts, main.py imports ListingOrchestrator, which imports ChannelPublisher, and this line immediately imports PublishResult back from the still-initializing orchestrator module. With the declared service dependencies installed, that circular import raises ImportError: cannot import name 'PublishResult' from partially initialized module, so uvicorn app.main:app cannot start; put PublishResult in this module or a separate schemas/results module instead.

Useful? React with 👍 / 👎.

Comment thread run_simple_gui.py
else:
response_text = self._call_openrouter(model, api_key, messages)
except Exception as exc:
self.root.after(0, lambda: self._handle_error(exc))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bind the exception before scheduling the error handler

If an Ollama/OpenRouter call fails, this schedules a lambda that closes over the except ... as exc variable. Python clears that variable after the except block, so when Tk later runs the callback it raises a NameError instead of calling _handle_error, leaving the UI busy with the Send button disabled. Capture the value in the lambda/default argument or pass a preformatted message.

Useful? React with 👍 / 👎.

run: |
# NOTE: put your own distribution build steps here.
python -m pip install build
python -m build
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Point the release build at a real Python package

In this workflow, the release job runs python -m build from the repository root immediately after checkout, but I checked the root for pyproject.toml, setup.py, or setup.cfg and none exists. That means every published release will fail in release-build before dist/ is uploaded or PyPI publishing can run; either add package metadata at the root or cd to the package that actually has it before building.

Useful? React with 👍 / 👎.

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