Skip to content

更新parent letter以及agent存在的bug#289

Open
dulala12 wants to merge 6 commits intomainfrom
agent
Open

更新parent letter以及agent存在的bug#289
dulala12 wants to merge 6 commits intomainfrom
agent

Conversation

@dulala12
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented Feb 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
qrent-frontend Ready Ready Preview, Comment Feb 13, 2026 1:27am

Copy link

@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: c47918f323

ℹ️ 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".

Comment on lines +5 to +8
host="139.180.164.78",
user="readonly",
password="j234k5lmnooij!some",
database="qrent",

Choose a reason for hiding this comment

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

P0 Badge Remove hard-coded database credentials from committed script

This new file includes a live database host, username, and password directly in source control, which exposes credentials to anyone who can read the repository and enables unauthorized access to the qrent database. Even if this is a temporary debug script, committing plaintext secrets is a security incident; these values should be removed immediately and rotated.

Useful? React with 👍 / 👎.

Copy link
Owner

Choose a reason for hiding this comment

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

Please prevent hard coded secrets. Reference .github/workflow/cd.yml to see how does it inject the env variable during build time.

Comment on lines 207 to +210
def should_continue(state: State) -> bool:
last = state.messages[-1]
tool_calls = getattr(last, "tool_calls", None)
if not tool_calls:
return False
return bool(tool_calls)

Choose a reason for hiding this comment

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

P1 Badge Restore loop cap when assistant keeps emitting tool calls

The termination condition now returns True for any tool call without enforcing the previous MAX_LOOPS guard, so a model that repeatedly emits tool calls can spin until the graph recursion limit is hit and fail the request. Reintroducing an explicit loop cap here prevents runaway tool cycles and makes failures deterministic.

Useful? React with 👍 / 👎.

Comment on lines 142 to +143
if _is_blank(wr):
errs.append("weekly_rent 不能为空(例如:750)。")
else:
try:
if not isinstance(wr, int):
raise ValueError
if wr <= 0:
errs.append("weekly_rent 必须为正整数。")
except Exception:
errs.append("weekly_rent 格式不正确,请填写整数(例如:750)。")
errs.append("weekly_rent 不能为空(例如:520 / AUD 520 / 520 per week)。")

Choose a reason for hiding this comment

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

P2 Badge Enforce positive weekly_rent in cover-letter validation

This validation branch now only checks that financials.weekly_rent is present, but it no longer rejects non-positive values. As a result, inputs like 0 or negative rent can pass business validation and be used to generate nonsensical letters; restore the positive-integer constraint in this path.

Useful? React with 👍 / 👎.

Copy link
Owner

@wiperi wiperi left a comment

Choose a reason for hiding this comment

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

commented

Comment on lines +5 to +8
host="139.180.164.78",
user="readonly",
password="j234k5lmnooij!some",
database="qrent",
Copy link
Owner

Choose a reason for hiding this comment

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

Please prevent hard coded secrets. Reference .github/workflow/cd.yml to see how does it inject the env variable during build time.

@wiperi
Copy link
Owner

wiperi commented Feb 13, 2026

Please use English for PR title.

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